Forums de discussion

Link in a Web content: "The content references a missing page"

thumbnail
Alessandro Candini, modifié il y a 7 années.

Link in a Web content: "The content references a missing page"

Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
On Liferay 7 DXP, I've created a new web content with structure "Basic Web Content".
Inside it, I've added with CKEditor a link to another portal page with an anchor tag; source code of the web content follows:
<a href="http://localhost:8080/en/web/my_site/my_other_page#my_anchor">
  my_other_page#my_anchor
</a>

The problem is that when I click on the "Publish" button, the portal reports on a red popup the following error: "The content references a missing page"
Why I cannot do something like this?
Is there a way to disable this kind of URL parsing?
thumbnail
Jorge Díaz, modifié il y a 7 années.

RE: Link in a Web content: "The content references a missing page"

Liferay Master Publications: 753 Date d'inscription: 09/01/14 Publications récentes
Which Liferay version are you using? Liferay 7 community or Liferay DXP?

Some bugs related to that functionality were solved, try testing with last available Liferay version.
thumbnail
Alessandro Candini, modifié il y a 7 années.

RE: Link in a Web content: "The content references a missing page"

Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
I'm using Liferay DXP with Fix Pack 13, the latest one at the moment.
thumbnail
Jorge Díaz, modifié il y a 7 années.

RE: Link in a Web content: "The content references a missing page"

Liferay Master Publications: 753 Date d'inscription: 09/01/14 Publications récentes
Hi Alessandro,

In order to avoid inconsistencies, links to pages and documents are checked before saving the webconent.

If you remove from link the anchor tag: #my_anchor, can you publish the webcontent?

Your behaviour can be a bug, anchor should be ignored during validations.

As you are using Liferay DXP, you should open a LESA ticket and ask for help to Liferay Support team
thumbnail
Alessandro Candini, modifié il y a 7 années.

RE: Link in a Web content: "The content references a missing page" (Réponse)

Regular Member Publications: 130 Date d'inscription: 17/10/15 Publications récentes
Thank you Jorge: yes, removing #my_anchor I could publish the webcontent.
But I solved using an href without language, and site:
<a href="my_other_page#my_anchor">
  my_other_page#my_anchor
</a>

Starting from my_other_page I could publish the webcontent with the anchor at the end.
It seemed that the parser that caused my first issue was not launched omitting the hostname, language and site...
thumbnail
Victor Zorin, modifié il y a 6 années.

RE: Link in a Web content: "The content references a missing page"

Liferay Legend Publications: 1228 Date d'inscription: 14/04/08 Publications récentes
Hi Jorge

Similar error appears on DXP when web content contains link to a page of a different site of the same portal.

The page the anchor refers to exists, valid and public but Web Content does not allow it for Saving.

Is there any configuration setting that we can disable this 'safety' check?
I understand that this checking could be useful, but shall not prevent us from doing 'Save' of the primitive content.

Regards
Victor
Christian Charlebois, modifié il y a 6 années.

RE: Link in a Web content: "The content references a missing page"

New Member Envoyer: 1 Date d'inscription: 06/10/12 Publications récentes
Did anyone found a solution to this?
I'm using LIferay 7.0.5 CE and can't make a link work on a different sites than the default one on the same instance.
The url doesn't add /web/mysitename/ to href.