<?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>Validation issue with an URL starting with "/documents/"</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121510333" />
  <subtitle>Validation issue with an URL starting with "/documents/"</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121510333</id>
  <updated>2026-04-04T02:33:57Z</updated>
  <dc:date>2026-04-04T02:33:57Z</dc:date>
  <entry>
    <title>Validation issue with an URL starting with "/documents/"</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121510332" />
    <author>
      <name>Aurelien Hatri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121510332</id>
    <updated>2022-09-08T16:19:26Z</updated>
    <published>2022-09-08T14:57:10Z</published>
    <summary type="html">&lt;p&gt;Hello guys,&lt;/p&gt;
&lt;p&gt;In my widget I want to use a link with this kind of URL
  &amp;quot;/documents/XXX&amp;quot; where &amp;quot;/documents/XXX&amp;quot; is not the
  true URL of a Liferay document of course but an URL to a Liferay page.
  The Liferay page is pointing to a the document for example &amp;quot;/documents/20143/0/XXX.pdf/ec4b4ec3-8f68-51c6-c4a0-818f4b567d8f&amp;quot;&lt;/p&gt;
&lt;p&gt;But when I tried to save my change, Liferay is not happy for I
  suppose quite &amp;quot;obvious&amp;quot; reason:&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Error:&lt;/strong&gt; Unable to validate referenced document because
  it cannot be found with the following parameters: {groupId=[XXX],
  endPos=[1316]} when analyzing link /documents/XXX.&lt;/p&gt;
&lt;p&gt;Do you know guys any workaround?&lt;/p&gt;</summary>
    <dc:creator>Aurelien Hatri</dc:creator>
    <dc:date>2022-09-08T14:57:10Z</dc:date>
  </entry>
</feed>
