留言板

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

thumbnail
Alessandro Candini,修改在7 年前。

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

Regular Member 帖子: 130 加入日期: 15-10-17 最近的帖子
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,修改在7 年前。

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

Liferay Master 帖子: 753 加入日期: 14-1-9 最近的帖子
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,修改在7 年前。

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

Regular Member 帖子: 130 加入日期: 15-10-17 最近的帖子
I'm using Liferay DXP with Fix Pack 13, the latest one at the moment.
thumbnail
Jorge Díaz,修改在7 年前。

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

Liferay Master 帖子: 753 加入日期: 14-1-9 最近的帖子
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,修改在7 年前。

RE: Link in a Web content: "The content references a missing page" (答复)

Regular Member 帖子: 130 加入日期: 15-10-17 最近的帖子
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,修改在6 年前。

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

Liferay Legend 帖子: 1228 加入日期: 08-4-14 最近的帖子
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,修改在6 年前。

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

New Member 发布: 1 加入日期: 12-10-6 最近的帖子
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.