Message Boards

Broken links to pages or files in Web Content causing publication errors

Dejan Obradovic, modified 3 Years ago.

Broken links to pages or files in Web Content causing publication errors

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Hello, It seems like after published to live that particular content links are broken - Status - the requested resource could not be found.

 

Any idea why this problem occure? How to test it, what caused this?

 

Tnx for your time! :)

thumbnail
Andrew Jardine, modified 3 Years ago.

RE: Broken links to pages or files in Web Content causing publication error

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts

Hey Dejan,

I came across this one recently and found that the issue was the links between "staging" and "live" we're twisted. Basically someone was cutting and pasting links for target locations but they were using the Live urls instead of the Staging urls and it was causing problems down stream. 

Can you tell us what kind of broken links you are seeing? is it document links? images? pages?

... and how are these links set in staging? are they manually entered? are they the result of a link-to-page or an image selection action?

Dejan Obradovic, modified 3 Years ago.

RE: RE: Broken links to pages or files in Web Content causing publication e

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Hello Andrew, 

 

Im facing broken links for pages. Yeah, it seems like they are manually entered, they are linking to page.

I'm working on existing project which did not have stagging option enabled in dashboard. I enabled stagging option few months ago and did not published anything since then. When I published few days ago my problem occures. 

I solved this problem by changing _parent prefix of the my url into button to the _default and then revert to _parent. 

Another one problem on the other page for the a href link tags I solved by adding https:// before my url. I'm not sure why is this happening and will I have same problems in the future after publishing?

 

Thanks for the response, I i appreciate it :)