My Oracle Support Banner

Content Presenter is not Resolving Relative Links in HTML Content (Doc ID 2876838.1)

Last updated on AUGUST 10, 2024

Applies to:

Oracle WebCenter Portal - Version 12.2.1.3.0 to 12.2.1.4.220602
Information in this document applies to any platform.

Symptoms

Using the default view in Content Presenter to display HTML files that contains tags, if URL is relative and does not include the http://<HOSTNAME>:<PORT>, the link will not display in the browser.  If the HTML contains the actual hostname and port, the link displays properly.

The issue can be reproduced with the following steps:

1. Create an HTML file with links to an existing document for example:

<p>Link default  WCC content link</p>
<p><a href="/cs/groups/personalspaces/<CONTENT_DIRECTORY>/<DOCUMENT_NAME>.pdf"><LINK_NAME_FOR_DOCUMENT></a></p>
<p>Link modified with hostname add WCC content link</p>
<p><a href="http://<HOSTNAME>:<PORT>/cs/groups/personalspaces/<CONTENT_DIRECTORY>/<DOCUMENT_NAME>.pdf"><LINK_NAME_FOR_DOCUMENT></a></p>

2. Check in the document to the WebCenter Content repository.

3. Use Content Presenter in WebCenter Portal to display with default options for the HTML file.

4. Click on first link and note that the page does not display and the url has been changed by Content Present to:

http://<HOSTNAME>/webcenter/faces/oracle/webcenter/sitestructure/render.jspx?datasource=WebCenterSpaces-ucm#dDocName%3<DOCUMENT_NAME>

5. Click on second link and notice the correct load of url:

http://<HOSTNAME>:<PORT>/cs/groups/personalspaces/<CONTENT_DIRECTORY>/<DOCUMENT_NAME>.pdf

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.