Validation issue with an URL starting with "/documents/"

Jamie Sammons, modified 3 Years ago. New Member Posts: 7 Join Date: 2/10/22 Recent Posts

Hello guys,

In my widget I want to use a link with this kind of URL "/documents/XXX" where "/documents/XXX" 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 "/documents/20143/0/XXX.pdf/ec4b4ec3-8f68-51c6-c4a0-818f4b567d8f"

But when I tried to save my change, Liferay is not happy for I suppose quite "obvious" reason:

Error: Unable to validate referenced document because it cannot be found with the following parameters: {groupId=[XXX], endPos=[1316]} when analyzing link /documents/XXX.

Do you know guys any workaround?