I'm trying to figure out how to link to another page within the same liferay site.
Obviously I could hardcode the url in my portlet's view but I'm worried about having to update all of my portlets in case the friendly url changes in the future.
I know the name of the page I'm trying to link to, but what if the page name changes too?
I've found infinity of classes that have methods that return friendlyUrls, such as PortalUtil
, LayoutLocalServiceUtil
, and even LayoutFriendlyURLLocalServiceUtil
, but they all require parameters that I'm not sure how to obtain.
Is there a standard way of obtaining friendly urls in liferay?