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!

Thanks

1 answer

This widget could not be displayed.

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:

http://devcenter.verivo.com/login.action?os_destination=%2Fdisplay%2Fdoc%2FUsing%2Bthe%2BAkula%2BSDKs

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:

https://answers.atlassian.com/questions/43104/wrong-redirect-after-login-to-confluene-homepage-in-stead-of-my-app-using-crowd

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

121 views 12 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