Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 420617

Summary: When logged in to the wiki, clicking Edit to edit a page forwards to front page
Product: Community Reporter: Lost Londoner <lostlondoner>
Component: WikiAssignee: Eclipse Webmaster <webmaster>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lost Londoner CLA 2013-10-29 08:41:05 EDT
See: https://wiki.eclipse.org/User_talk:Lostlondoner.gmail.com

I was trying to edit the page 

http://wiki.eclipse.org/Bug_Reporting_FAQ#Bug_Reporting_References

as there was an error in the instructions.
Comment 1 Lost Londoner CLA 2013-10-29 08:50:40 EDT
It seems like this error occured due to an old version of the page (before login) being cached.  Still, an error message explaining the problem rather than silently jumping to the front page of the wiki would have been nice.
Comment 2 Markus Keller CLA 2013-11-05 12:12:22 EST
The bug is that you always seem to be logged out on http (non-secure) pages. When you click Edit, your're taken to https and logged in. But when you go back to original http page again, you're logged out again, and clicking Edit restarts the vicious circle.

If you log in via "Log in" link, then you just lose the #Bug_Reporting_References part of the URL, but you at least end up on the same wiki page, but this time with https and being logged in.

See also bug 411348.
Comment 3 Eclipse Webmaster CLA 2013-11-05 15:50:10 EST
Are you still seeing this?

-M.
Comment 4 Markus Keller CLA 2013-11-06 09:06:23 EST
On the http page from comment 0, the Edit tab now links to
https://wiki.eclipse.org/index.php?title=Special:Userlogin&returnto=Bug%20Reporting%20FAQ

The first time I clicked that link, I was taken to https://dev.eclipse.org/site_login/ (like it usually happens the first time I try to log in on a new day). Eventually, the "Continue" button returned me to https://wiki.eclipse.org/Bug_Reporting_FAQ (i.e. *not* the Edit page).

Now that I seem to be logged in, the Edit tab on a http page takes me to https://wiki.eclipse.org/Bug_Reporting_FAQ : I'm logged in now, but I didn't land on the Edit page, and the Edit tab is now at a different position:
http : Page, Discussion, View source, History, *Edit*
https: Page, Discussion, *Edit*, History, Move, Unwatch

=> Edit doesn't forward to front page any more, but it still doesn't work on http page.

To fix this bug, I think you can just append "&returntoquery=action%3Dedit" to the Edit button URL on http pages, e.g.:
https://wiki.eclipse.org/index.php?title=Special:Userlogin&returnto=Bug%20Reporting%20FAQ&returntoquery=action%3Dedit
Comment 5 Eclipse Webmaster CLA 2013-11-06 15:09:48 EST
Ok I've appended the returnto query details to the edit link on HTTP pages.

-M.
Comment 6 Dani Megert CLA 2013-11-07 02:28:49 EST
(In reply to Eclipse Webmaster from comment #5)
> Ok I've appended the returnto query details to the edit link on HTTP pages.
> 
> -M.

Still not working for me:

1. open fresh IE (10 in my case)
2. go to wiki.eclipse.org/JDT_Core/Java7
3. click 'Edit' (NOTE: the button is at the rightmost position)
   ==> log in page appears
4. log in
5. click 'Continue >'
==> redirected to https://wiki.eclipse.org/JDT_Core/Java7 on 'Page' and buttons are reordered. I still can't edit unless I click 'Edit' again.
Comment 7 Eclipse Webmaster CLA 2014-09-17 16:11:11 EDT
We just updated the wiki so now the edit button will only appear if you are actually logged in(and can therefore edit). 

-M.