Author: latimer
Description:
My MW implementation requires a login to edit pages, but not to view. If the user visits a given page, then would like to update that data, they must login to the wiki before the edit is allowed - which works as expected.
However, this behavior is problematic since the page they were on is not maintained. They must login, then re-navigate to the page they were interested in, before being able to edit. It would be much more user-friendly to return them to the same page they were trying to edit before the login request.
- STEPS TO REPRODUCE
- MW configured to require login to edit (i.e. LocalSettings.php entry of "$wgGroupPermissions['*']['edit'] = false;" )
- Access any page beyond the Main Page
- Click 'edit' in main toolbar
- "Login required to edit" page displayed - with no reference to the page you were just on
- Click 'login'
- "Log in / create account" page displayed - with no reference to the page you came from
- Log in successfully
- RESULTS
"Return to Main Page" is displayed - although we actually wanted to return to where we came from.
- WORKAROUND
Instead of clicking "edit", the user may click "log in / create account" in main toolbar - which presents the same login request, but returns you to the page you were on when complete. User must then click "edit" again to actually edit the page, however.
Note that upon this attempt, the URL changes to provide a "returnto={pagename}" indication, unlike the direct "edit" attempt.
In other words:
2a) Click "log in / create account", and the URL is:
http://mycoolwiki.hostname.tld/wiki/index.php?title=Special:Userlogin&returnto=Page_I_want_to_edit
…which is perfect; it says that when your done logging in, to return to that specific page
vs.
2b) Instead, from that same initial page, click "edit", and the URL is:
http://mycoolwiki.hostname.tld/wiki/index.php?title=Page_I_want_to_edit&action=edit
(which merely indicates a return to "Main Page")
…and if you click "login" from there, it takes you to:
http://mycoolwiki.hostname.tld/wiki/index.php/Special:Userlogin
…which contains no reference to the page you just came from. Completing the login, therefore, merely returns you to the Main Page.
Very frustrating, as my users want to encounter as few hurdles as possible in completing edits to pages. There should be a method of allowing a non-authenticated user's direct "edit" request to retain the "returnto" indication for the page, allowing them direct access once they have logged in.
Version: 1.6.x
Severity: major