Editing the Context Path and Then Clicking on Profile or Space Links Triggers a 404 Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After editing the context path in the Confluence Server Base URL, some links related to spaces and some profile links don't contain the new base url, and when clicked generate a 404 error. Also the icons on the top navigation bar will render letters instead of icons:

 There will be NO errors shown in the atlassian-confluence.log file for this behavior.

 

Cause

This problem happens because there's a "/" on the context path parameter in the server.xml file, which is not well handled by Tomcat.

Resolution

  1. Stop the Confluence server.
  2. Go to your <Confluence Install Directory>/conf.
  3. Edit the server.xml file.
  4. In the Context element, change the value of the path from:

    Context path="/"

    to

    Context path=""
  5. Save the file.
  6. Start Confluence.
Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.