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
How to make friendly URL locale sensitive ?
Dear community,
When declaring a Friendly URL, there is no obvious option/attribute to say "this mapping applies to French" and "this other one applies to German".
As a result, if I want my mapping prefix to depend on the language, how can I acheive this requirement ?
Thank you,
When declaring a Friendly URL, there is no obvious option/attribute to say "this mapping applies to French" and "this other one applies to German".
As a result, if I want my mapping prefix to depend on the language, how can I acheive this requirement ?
@Component(
property = {
"com.liferay.portlet.friendly-url-routes=META-INF/friendly-url-routes/routes.xml",
"javax.portlet.name=" + OfferPortletKeys.PORTLET_NAME
},
service = FriendlyURLMapper.class
)
public class OfferFriendlyURLMapper extends DefaultFriendlyURLMapper { private static final String _MAPPING = "annonce";
@Override
public String getMapping() {
return _MAPPING;
}
}
Thank you,
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™