redirect after Confluence login contains extra url encoded slash and results in 404

I need help to fix this issue.

I click on a bookmark

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

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

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

We are not using apache. the Context path setting is

<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">

4 answers

0 vote
David Simpson Community Champion Feb 19, 2014

Check your Server Base Url in Confluence Admin | General Configuration for a trailing slash. If there's one present, remove it.

base server url does not have a trailing slash

https://mycompany.com/confluence

also version of Confluence is Atlassian Confluence 5.3.1,

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...

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

264 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you