How to continue a link to a wiki page after sign in?

Here is the situation we are seeing in our Confluence 5.1.3 version. We do not use SSO and currently we allow anonymous accesses.

  • A user received a url to a wiki page and selects it
  • The user is prompted to log into the wiki because of page restrictions
  • After log in, the wiki directs them to their user default home page instead of the original page from that url link they were intending to go

I have been fooling around with the settings, but I cannot seem to figure out how to allow the user to continue to the original intended page. This seems to only happen if the page has restrictions on it.

I would appreciate any suggestions, help, or even words of encouragement!


1 answer

I'm using Confluence 4.x but encountered the same issue.

For the default login screen, the os_destintion param should be set by default when the user is redirected to that page. For example:

If it's not setting by default, then maybe you have a custom login screen?

What I did was add a custom login link and add the os_destination query string parameter to point to the value of the requested page. For example, the code to do this in a user macro is:

"/login.action?os_destination=%2Fdisplay" + $generalUtil.urlEncode($req.getPathInfo())

Some additional perspective on this issue might be here:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
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