Description

When logging in with openid, you are always redirected to the front page, rather than to the page you were looking at when you started the login.

Steps to reproduce

  1. Enable openid login
  2. Navigate to a sub page
  3. Click "Login"
  4. Complete the login process
  5. Once the process completes you will be at the root page, rather than the page you started on.

Example

https://wiki.ubuntu.com/ shows this behaviour.

Component selection

Details

The get_multistage_continuation_url function tries to use request.page to redirect back to the same page.

However, request.page isn't set up until after setup_user has been called, which triggers the login action when submitting the form.

Either the function needs to use some other method to try and stick on the same page, or the setup of request.page needs to be bought forwards in the pipeline.

MoinMoin Version

1.9

OS and Version

Ubuntu 12.04

Python Version

2.7

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

No known workaround.

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/OpenIDLoginDoesntRedirectBackToCurrentPage (last edited 2014-10-20 20:50:26 by 10)