<?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>Redirect URL limited to 1400 characters when set using portlet 'param' tag?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119910587" />
  <subtitle>Redirect URL limited to 1400 characters when set using portlet 'param' tag?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119910587</id>
  <updated>2026-04-04T03:53:43Z</updated>
  <dc:date>2026-04-04T03:53:43Z</dc:date>
  <entry>
    <title>RE: Redirect URL limited to 1400 characters when set using portlet 'param'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120017402" />
    <author>
      <name>Vladislav Kolev</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120017402</id>
    <updated>2020-09-28T10:22:15Z</updated>
    <published>2020-09-28T10:22:15Z</published>
    <summary type="html">Yeah, I guess that makes sense when you implement multiple redirect levels. However, all I got is one &amp;#34;redirect level&amp;#34; and the redirect URL just stops being set once it goes over the 1400 character threshold... Anything below 1400 works absolutely fine.&lt;br /&gt;&lt;br /&gt;Anyway, we switched back to the old way of redirecting pages by passing portlet parameters for each page. Thankfully, this still works.</summary>
    <dc:creator>Vladislav Kolev</dc:creator>
    <dc:date>2020-09-28T10:22:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirect URL limited to 1400 characters when set using portlet 'param'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120013052" />
    <author>
      <name>Vladislav Kolev</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120013052</id>
    <updated>2020-09-28T10:22:03Z</updated>
    <published>2020-09-28T10:22:03Z</published>
    <summary type="html">You are right about the 2000 limit, I am also aware of it. However that is not the issue here, since the overall URL that is generated is never above 2000 characters.</summary>
    <dc:creator>Vladislav Kolev</dc:creator>
    <dc:date>2020-09-28T10:22:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirect URL limited to 1400 characters when set using portlet 'param'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119987866" />
    <author>
      <name>Ian Gosling</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119987866</id>
    <updated>2020-09-23T12:06:55Z</updated>
    <published>2020-09-23T12:06:55Z</published>
    <summary type="html">We have run into the long URL problem before, in version 6.2. For us, it happened when the back URL in portlets started to accumulate redirects (i.e. navigation history) as a user clicked through links in search containers which led to pages with further search containers, etc. Liferay does some automatic shortening of URLs which get too long, if I remember correctly by trimming away the oldest levels of redirect. This can sometimes mean the whole redirect parameter gets trimmed away. &lt;br /&gt;But we still got to a situation where this didn&amp;#39;t do enough and we had to deliberately not use the redirect passed into a portlet request as the back URL but use something much shorter, such as the URL of a likely previous page, which would still give the user some sense of history.&lt;br /&gt;HTH&lt;br /&gt;Ian</summary>
    <dc:creator>Ian Gosling</dc:creator>
    <dc:date>2020-09-23T12:06:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirect URL limited to 1400 characters when set using portlet 'param'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119990052" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119990052</id>
    <updated>2020-09-23T11:49:40Z</updated>
    <published>2020-09-23T11:49:40Z</published>
    <summary type="html">I assume this has something to do with the maximum URL length different browsers support. As far as I know common browsers have an URL limit of about 2000 characters.</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-09-23T11:49:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirect URL limited to 1400 characters when set using portlet 'param'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119976625" />
    <author>
      <name>Vladislav Kolev</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119976625</id>
    <updated>2020-09-21T08:25:44Z</updated>
    <published>2020-09-21T08:25:44Z</published>
    <summary type="html">Hi again,&lt;br /&gt;Any suggestions or questions in regards to this?  </summary>
    <dc:creator>Vladislav Kolev</dc:creator>
    <dc:date>2020-09-21T08:25:44Z</dc:date>
  </entry>
  <entry>
    <title>Redirect URL limited to 1400 characters when set using portlet 'param' tag?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119910586" />
    <author>
      <name>Vladislav Kolev</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119910586</id>
    <updated>2020-09-07T10:13:56Z</updated>
    <published>2020-09-07T10:13:56Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello everyone,&lt;br&gt;&lt;br&gt;I recently ran into a problem when trying to set a redirect URL for the 'edit' view of the portlet. I&amp;nbsp;have some additional filters added to the SearchContainer in the view page, which makes the URL larger. I am setting the 'redirect' variable to the current URL in the view-entity-actions.jsp and also in the view-entity.jsp as a portlet 'param' tag:&lt;br&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;portlet:renderurl var="editEntityRenderURL"&amp;gt;
    &amp;lt;portlet:param name="redirect" value="${currentURL}" /&amp;gt;
&amp;lt;/portlet:renderurl&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;The 'redirect' variable is then utilised in the edit-entity.jsp so that whenever the user clicks on a "Back", "Cancel" or "Submit" button, they will be redirected accordingly to the initial view page with their filter preferences kept. I've done a lot of scenario testing and turns out this works fine whenever the redirect URL does not exceed 1400 characters. Once it does, the redirect URL is basically not set whenever a transition is done from the 'view' to the 'edit' page. &lt;br&gt;I went through the documentation and I could not find such a limitation mentioned anywhere. Any clues why this happens? I am using Portlet Version 3.0, Liferay 7.1.3.&lt;br&gt;&lt;br&gt;Any help would be highly appreciated!&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Vlad&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Vladislav Kolev</dc:creator>
    <dc:date>2020-09-07T10:13:56Z</dc:date>
  </entry>
</feed>
