Summary
There is a known issue with iOS Safari while using history.pushState(), which is an API that Liferay uses. Issues outside of Liferay can be found at:
- Stack Overflow: Alert, Confirm, and Prompt Not Working After Using History API on Safari, iOS
- Github: Navigating Back Breaks Alert/Confirm/Prompt Dialogs on iOS Safari
- Stack Overflow: Prevent Safari Loading from Cache When Back Button is Clicked
This issue will make it impossible to remove the Web Content Display portlet from a page when using Safari on iOS.
Solution
The only solution within Liferay is to disable SPA within the portal. This can be done by setting this property in your portal-ext.properties:
javascript.single.page.application.enabled=false
Please be aware that disabling SPA can increase page load times on your portal.
For more information on SPA within Liferay, please read: Introduction to Liferay Development
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In