<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Localiced Friendly URL mapping</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110944453" />
  <subtitle>Localiced Friendly URL mapping</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110944453</id>
  <updated>2026-04-04T13:22:57Z</updated>
  <dc:date>2026-04-04T13:22:57Z</dc:date>
  <entry>
    <title>Localiced Friendly URL mapping</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110944452" />
    <author>
      <name>Aritz Galdos</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110944452</id>
    <updated>2018-09-13T11:23:26Z</updated>
    <published>2018-09-13T11:23:26Z</published>
    <summary type="html">&lt;p&gt;Hi guys! It's been a long time!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am messing aroung with 7/DXP series and I have a concrete need for
  which I can't find any solution.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have developed a portlet and I would like to provide it with
  friendly URLs.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The problem is that these URLs are not localized. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried implementing two different DefaultFriendlyURLMapper's and
  each one would return a different value in the getMapping method.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;public String getMapping() {&lt;br /&gt;         return _MAPPING;&lt;br /&gt;     }&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;and _MAPPING has the concrete values in each class&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;private static final String _MAPPING = &amp;quot;my-friendly-url-ES&amp;quot;;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;private static final String _MAPPING = &amp;quot;my-friendly-url-EU&amp;quot;;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But it seems the registering thow friendlyURL mappers is not a solution.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any hint on this?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Aritz Galdos</dc:creator>
    <dc:date>2018-09-13T11:23:26Z</dc:date>
  </entry>
</feed>
