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

271 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