redirect after Confluence login contains extra url encoded slash and results in 404
Asked by Gail Stewart:

I need help to fix this issue.

I click on a bookmark

[](https://mycompany.com/confluence/display/lab/Continuous+Deployment+Strategy+and+Objectives)<https://mycompany.com/confluence/display/lab/Continuous+Deployment+Strategy+and+Objectives>

sent to login page with this os_destination in the url window

[](https://mycompany.com/confluence/login.action?os_destination=%252Fpages%252Fviewpage.action%253Ftitle%253DContinuous%252BDeployment%252BStrategy%252Band%252BObjectives%2526spaceKey%253Dlab)[https://mycompany.com/confluence/login.action?os_destination=%252Fpages%252Fviewpage.action%253Ftitle%253DContinuous%252BDeployment%252BStrategy%252Band%252BObjectives%2526spaceKey%253Dlab](https://mycompany.com/confluence/login.action?os_destination=%25252Fpages%25252Fviewpage.action%25253Ftitle%25253DContinuous%25252BDeployment%25252BStrategy%25252Band%25252BObjectives%252526spaceKey%25253Dlab)

submit my login credentials and I'm sent to this url which returns a 404

[](http://mycompany.com/confluence/%2Fpages%2Fviewpage.action%3Ftitle%3DContinuous%2BDeployment%2BStrategy%2Band%2BObjectives%26spaceKey%3Dlab)[http://mycompany.com/confluence/%2Fpages%2Fviewpage.action%3Ftitle%3DContinuous%2BDeployment%2BStrategy%2Band%2BObjectives%26spaceKey%3Dlab](http://mycompany.com/confluence/%252Fpages%252Fviewpage.action%253Ftitle%253DContinuous%252BDeployment%252BStrategy%252Band%252BObjectives%2526spaceKey%253Dlab)

If I replace the first two %2F with a slash it works.

[](https://mycompany.com/confluence/pages/viewpage.action?title=Continuous%2BDeployment%2BStrategy%2Band%2BObjectives&spaceKey=lab)[https://mycompany.com/confluence/pages/viewpage.action?title=Continuous%2BDeployment%2BStrategy%2Band%2BObjectives\&spaceKey=lab](https://mycompany.com/confluence/pages/viewpage.action?title=Continuous%252BDeployment%252BStrategy%252Band%252BObjectives&spaceKey=lab)

We are not using apache. the Context path setting is  
\<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"\>


Answers:
author: IBM iX System Engineering Team
body: There is a workarround mentioned here:

[https://confluence.atlassian.com/display/BAMKB/404+page+as+a+result+of+double-encoded+slashes+in+the+URL+when+using+Apache?focusedCommentId=671088852\&#comment-671088852](https://confluence.atlassian.com/display/BAMKB/404+page+as+a+result+of+double-encoded+slashes+in+the+URL+when+using+Apache?focusedCommentId=671088852&#comment-671088852)


author: Matthew J. Horn
body: Could be your login VM files is inserting a trailing slash. Check the source. Not sure why this would start happening, unless someone was mucking around in those files...


author: Gail Stewart
body: base server url does not have a trailing slash

[](https://mycompany.com/confluence)<https://mycompany.com/confluence>

also version of Confluence is [Atlassian Confluence](http://www.atlassian.com/software/confluence) 5.3.1,


author: David at David Simpson Apps
body: Check your **Server Base Url** in **Confluence Admin \| General Configuration** for a trailing slash. If there's one present, remove it.


Tags: login

redirect