I will be explaining how to remove locale from the liferay portal url which is defaultly appending to the url ,
Consider a site url
http://hostname/fi_FI/web/patient/dashboard
locale(fi_FI) is appended to the url . We dont want locale to be appended to the url .
There are two solutions for this issue .
1) Set the following property in portal-ext.properties
^(.*)/web/pages$
/web/pages$
Consider a site url
http://hostname/fi_FI/web/patient/dashboard
locale(fi_FI) is appended to the url . We dont want locale to be appended to the url .
There are two solutions for this issue .
1) Set the following property in portal-ext.properties
locale.prepend.friendly.url.style=0
2) We need to add the rewrite rule in urlrewrite.xml file which is available under WEB-INF folder of server .
No comments:
Post a Comment