My Oracle Support Banner

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

Last updated on AUGUST 24, 2022

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.


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:


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





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

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