Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Localiced Friendly URL mapping
Hi guys! It's been a long time!
I am messing aroung with 7/DXP series and I have a concrete need for which I can't find any solution.
I have developed a portlet and I would like to provide it with friendly URLs.
The problem is that these URLs are not localized.
I tried implementing two different DefaultFriendlyURLMapper's and each one would return a different value in the getMapping method.
public String getMapping() {
return _MAPPING;
}
and _MAPPING has the concrete values in each class
private static final String _MAPPING = "my-friendly-url-ES";
private static final String _MAPPING = "my-friendly-url-EU";
But it seems the registering thow friendlyURL mappers is not a solution.
Any hint on this?
Best regards!
Powered by Liferay™