Localiced Friendly URL mapping

thumbnail
Aritz Galdos, modified 7 Years ago. Expert Posts: 416 Join Date: 5/15/07 Recent Posts

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!