How can I disable SennaJS / SPA in Liferay 7?

Liferay 7 uses SennaJS as a single page mechanism to load and replace certain portions of a portal page during form submission and navigation. Sometimes this function interferes with my use case, so how do I turn it off?

+4
source share
1 answer

If you want to disable the SennaJS XHR GET navigation or the processing of submitted forms, you can try one of the following:

  • If you want to disable SPA only for certain forms or links, you can add an attribute data-senna-off="true"to these tags <form>or <a>.

  • SPA , <single-page-application>false</single-page-application> <portlet> liferay-portlet.xml ( DTD DTD). liferay-portlet.xml).

  • SPA , javascript.single.page.application.enabled=false portal-ext.properties.

+9

Source: https://habr.com/ru/post/1664588/


All Articles