Redirect after Login in Confluence

I have a problem and I haven't seen the answer in any of the forum posts here. We have a SaaS system that will use Confluence 4.1 as a Help Center. The goal for our help system is that each page of our application will have a wiki page in Confluence. When the user clicks on a link in our system we will lookup the appropriate Confluence wiki page in a database we maintain and redirect the user to the confluence page we find. The bit tricky part here is that when the user clicks the link in our application the user will be passed to the confluence login action (we have something set up to pass over the credentials to the login page so the user can be authenticate)d and will need to be redirected after authentication to the appropriate wiki page.

Now, we thought this would be no problem and that we could just put the page path in the 'os_destination' form field and that would be fine. For example we could put in 'display/g4s/Business+Consulting' where 'g4s' is the space name. However, when we do this after the user is authenticated they are taken back to the user dashboard. If we just put in 'display/g4s' into the os_destination field the user is taken to the space home.

So what gives? Why can't I redirect a user to a specific page in confluence? Is there any work around that doesn't require me to go mucking around with Tomcat or some other confluence config file?

1 answer

1 accepted

I don't get why this is happening for you. I just tested this myself and it follows whatever I set os_destination to, including pages. Does it make a difference when you urlencode the path? Are you using any reverse proxies or anything that might mess with the data?

Dennis,

I was able to get this to work. I'm not sure exactly what I was doing wrong, I might have had an issue with my test user not having the appropriate permissions to the space we were trying to have them access.

Best Regards,

Brett

Excellent! Please mark the question as answered and try to give a full solution, it may help people in the future with a similar problem :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,182 views 4 6
Read article

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