[WWW] cannot logout, www.factorio.com/logout does not exist

Bugs that are actually features.
MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

[WWW] cannot logout, www.factorio.com/logout does not exist

Post by MF- »

A minor thing - the factorio.com logout link does not work for me.
I am not 100% sure, that some logout-vital javascript is not blocked, though.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [WWW] cannot logout, www.factorio.com/logout does not ex

Post by slpwnd »

That is very well possible. The logout link actually uses javascript because it sends the logout via post method.
MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [WWW] cannot logout, www.factorio.com/logout does not ex

Post by MF- »

slpwnd wrote:That is very well possible. The logout link actually uses javascript because it sends the logout via post method.
It might be a NoScript incompatibility, then.
It seems that it's anti-JS-link feature converted itto <a data-method="post" href="/logout">log out</a>
If there were no data expected as payload, it should work.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [WWW] cannot logout, www.factorio.com/logout does not ex

Post by slpwnd »

What the JS does is that when logout is clicked it creates a form to the same url that is send with a POST method. Regular links allow only GET. Using POST for actions that change something (like logout) is supposed to be a good practice. For instance some browsers might "prefetch" links on the webpage resulting to frequent unintended logouts.
Post Reply

Return to “Not a bug”