<?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>How to turn off: Liferay-generated URLS in HTML are coded in Hex Decimal</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=51158310" />
  <subtitle>How to turn off: Liferay-generated URLS in HTML are coded in Hex Decimal</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=51158310</id>
  <updated>2026-06-15T11:21:58Z</updated>
  <dc:date>2026-06-15T11:21:58Z</dc:date>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=57013902" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=57013902</id>
    <updated>2015-08-03T06:24:44Z</updated>
    <published>2015-08-03T06:24:44Z</published>
    <summary type="html">You can test if tomcat is aware of the https nature of a connection by calling the &lt;a href="https://docs.liferay.com/portlet-api/2.0/javadocs/javax/portlet/PortletRequest.html#isSecure%28%29"&gt;PortletRequest&amp;#39;s method isSecure&lt;/a&gt; or even &lt;a href="http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#isSecure%28%29"&gt;on the original ServletRequest&lt;/a&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2015-08-03T06:24:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56580175" />
    <author>
      <name />
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56580175</id>
    <updated>2015-07-22T09:38:03Z</updated>
    <published>2015-07-22T09:38:03Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;For moving from http to https you can make Liferay generate HTTPS links only. Just make tomcat (or whatever appserver you use) aware that the connection is coming in through HTTPS. This information will be checked by Liferay and Liferay will only generate https URLs for connections that come in through https. (AJP does this out of the box. For HTTP-proxying you might have to tweak tomcat&amp;#39;s connectors and use one that you declare as secure in tomcat&amp;#39;s configuration)&lt;br /&gt;&lt;br /&gt;And you can tweak Liferay&amp;#39;s settings more and just make Liferay unconditionally generate https URLs (search portal.properties for https, I don&amp;#39;t have the reference at hand)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thanks Olaf!&lt;br /&gt;&lt;br /&gt;we don&amp;#39;t use HTTP on LifeRay-Server. This server work normal on port XY and our firewall do redirect from external URL https://site.com/home to internal http://local:XY/home&lt;br /&gt;&lt;br /&gt;in this case, can I use your solution?</summary>
    <dc:creator />
    <dc:date>2015-07-22T09:38:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56578746" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56578746</id>
    <updated>2015-07-22T08:52:06Z</updated>
    <published>2015-07-22T08:52:06Z</published>
    <summary type="html">For moving from http to https you can make Liferay generate HTTPS links only. Just make tomcat (or whatever appserver you use) aware that the connection is coming in through HTTPS. This information will be checked by Liferay and Liferay will only generate https URLs for connections that come in through https. (AJP does this out of the box. For HTTP-proxying you might have to tweak tomcat&amp;#39;s connectors and use one that you declare as secure in tomcat&amp;#39;s configuration)&lt;br /&gt;&lt;br /&gt;And you can tweak Liferay&amp;#39;s settings more and just make Liferay unconditionally generate https URLs (search portal.properties for https, I don&amp;#39;t have the reference at hand)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2015-07-22T08:52:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56579667" />
    <author>
      <name />
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=56579667</id>
    <updated>2015-07-22T08:45:50Z</updated>
    <published>2015-07-22T08:45:50Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;have a same problem on LR6.2 GA4&lt;br&gt;&lt;br&gt;any solution in this time?&lt;br&gt;&lt;br&gt;we try to change HTTP to HTTPS from our TMG Firewall, but NOT all urls from liferay can be changed. only CSS +- JS form LR can not be rewrited. WHY? can not understand. &lt;br&gt;&lt;br&gt;and not all Link Translation with Link mapping (from HEX-Form to NORMAL-string) work on Firewall...&lt;br&gt;&lt;pre&gt;&lt;code&gt;https://zzz.zz.zz/portal/ ==&amp;amp;gt; https://yyy.yy.yy/portal/&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;PLEASE HELP!!!!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator />
    <dc:date>2015-07-22T08:45:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=55076287" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=55076287</id>
    <updated>2015-06-11T16:16:28Z</updated>
    <published>2015-06-11T16:16:28Z</published>
    <summary type="html">I think the hex encoding is done to encapsulate issues with i18n URLs.  I&amp;#39;m not sure that it can be changed to handle %2f format as it can&amp;#39;t support UTF-8.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2015-06-11T16:16:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=55071169" />
    <author>
      <name>Steven Lorscheid</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=55071169</id>
    <updated>2015-06-11T14:43:14Z</updated>
    <published>2015-06-11T14:43:14Z</published>
    <summary type="html">Hi David,&lt;br /&gt;&lt;br /&gt;meanwhile we tried to contact the provider of our proxyserver.  See what they answered us 2 days ago:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Extraweb only support percentage encoded urls that is of &amp;#39;%2f&amp;#39; type. &lt;br /&gt;Urls encoded with &amp;#39;#&amp;#39;, &amp;#39;&amp;amp;&amp;#39; and Decimal value are treated as normal strings. Thus when encountered with a &amp;#39;href&amp;#39; tag it is considered a relative url and gets translated. The appliance is behaving correctly and as expected&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt;So, is it possible to configure Liferay that it creates URLs, which are encoded in a different way, for example of &amp;#39;%2f&amp;#39; type, like mentioned above?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Steven</summary>
    <dc:creator>Steven Lorscheid</dc:creator>
    <dc:date>2015-06-11T14:43:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to turn off: Liferay-generated URLS in HTML are coded in Hex Decima</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51161994" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51161994</id>
    <updated>2015-03-27T13:16:08Z</updated>
    <published>2015-03-27T13:16:08Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Steven Lorscheid:&lt;/div&gt;&lt;blockquote&gt;1) Is it possible to configure Liferay not to code URLS in Hex Decimal Code.?&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;No.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;2) Is it possible to configure Liferay to only return relativ URLs)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;No.&lt;br /&gt;&lt;br /&gt;Seriously, Liferay&amp;#39;s URL generation has gone through many rounds of tweaking and changing over the years.  The encoding is done for perhaps not so obvious reasons but they need to be done.&lt;br /&gt;&lt;br /&gt;Have you asked in the forums for your reverse proxy server if it can be made smart enough to handle encoded urls?</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2015-03-27T13:16:08Z</dc:date>
  </entry>
  <entry>
    <title>How to turn off: Liferay-generated URLS in HTML are coded in Hex Decimal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51158309" />
    <author>
      <name>Steven Lorscheid</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=51158309</id>
    <updated>2015-03-27T12:20:59Z</updated>
    <published>2015-03-27T12:20:59Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;Im using Liferay 6.2 EntrepriseEdition ServicePack 9.&lt;br /&gt;I am confronted with the following problem:&lt;br /&gt;URLs which are part of the returned HTML (for example references to styles ) are being coded by Liferay in Hex Decimal Code ( see http://character-code.com/ ).&lt;br /&gt;Our Reverse proxy, who is responsible for URL-Rewriting searchs for  something which is not Hex  Decimal coded, and isn&amp;#39;t able to find a match.&lt;br /&gt;That causes him to think, that the URL is a relative one, and he tries to complete the relative URL by sticking his  URL in front of the URL found in the HTML.&lt;br /&gt;&lt;br /&gt;Finally the style cannot be loaded, because the URL is completly messed up.&lt;br /&gt;&lt;br /&gt;Example: &lt;br /&gt;&lt;br /&gt;1) URL which is used to call the Reverse Proxy Server: https://yyy.yy.yy/portal/[...]&lt;br /&gt;2) Reverse Proxy Server replaces to https://zzz.zz.zz/portal/[...] and calls Liferay with that URL.&lt;br /&gt;3) Liferay responds with an HTML-File which includes a reference to a Style-sheet: https&amp;amp;#x3a;&amp;amp;#x2f;&amp;amp;#x2f;zzz&amp;amp;#x2e;zz&amp;amp;#x2e;zz&amp;amp;#x2f;portal&amp;amp;#x2f[...];&lt;br /&gt;4) Reverse Proxy Server wants to do URL-Rewriting and searchs in the HTML for pattern:   &amp;#34;https://zzz.zz.zz/portal/&amp;#34; .&lt;br /&gt;5) Reverse Proxy  Server has no pattern match.&lt;br /&gt;6) Reverse Proxy  Server sticks &amp;#34;https://yyy.yy.yy/portal/&amp;#34; in front of  https&amp;amp;#x3a;&amp;amp;#x2f;&amp;amp;#x2f;zzz&amp;amp;#x2e;zz&amp;amp;#x2e;zz&amp;amp;#x2f;portal&amp;amp;#x2f[...];&lt;br /&gt;7) &amp;#34;https://yyy.yy.yy/portal/https&amp;amp;#x3a;&amp;amp;#x2f;&amp;amp;#x2f;zzz&amp;amp;#x2e;zz&amp;amp;#x2e;zz&amp;amp;#x2f;portal&amp;amp;#x2f[...]; is being returned.&lt;br /&gt;8) URL is useless.&lt;br /&gt;&lt;br /&gt;Question:&lt;br /&gt;1) Is it possible to configure Liferay not to code URLS in Hex Decimal Code.?&lt;br /&gt;2) Is it possible to configure Liferay to only return relativ URLs)&lt;br /&gt;&lt;br /&gt;Thanks for help,&lt;br /&gt;Steven</summary>
    <dc:creator>Steven Lorscheid</dc:creator>
    <dc:date>2015-03-27T12:20:59Z</dc:date>
  </entry>
</feed>
