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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 32m ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

7 views 0 1
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