Relative links are broken due to context path defined as forward slash
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Relative links do not work as described in the Confluence link syntax. Seeing the following URL pattern when hover to the "edit" tab in a page:
[http://pages/editpage.action?pageId=]<the pageID>
Note that the <domainURL> is missing compare to the valid/actual URL:
http://<domainURL>/pages/editpage.action?pageId=<the pageID>
Cause
The context path is specified in an invalid format. To access Confluence instance without any context path, the following configuration is used in the server.xml
or confluence.xml
for a .war file:
<Context path="" docBase="../confluence" debug="0" reloadable="false">
Adding a slash to the context path will cause this incorrect link behaviour:
<Context path="/" docBase="../confluence" debug="0" reloadable="false">
Solution
Remove the additional slash defined in the server.xml file:
<Context path="" docBase="../confluence" debug="0" reloadable="false">