It is not possible to logout from mobile wiki via Special::UserLogout page
- Login to Wikipedia
- Switch To mobile view
- Go to LogoutPage (https://en.m.wikipedia.org/wiki/Special:UserLogout)
- Click the continue to the log out page link
Expected result: user gets logged out
Current result: MediaWiki UserLogout page shows an error "Log out failed due to session error. Please try again."
This happens when the link to the Special::UserLogout page doesn't contain the logoutToken, then the Mobile Wikipedia shows an intermediate step - it asks for confirmation.
The continue to the log out page link points to the desktop (https://en.wikipedia.org/wiki/Special:UserLogout) UserLogout page, but user is on mobile domain. Most probably because of that
the token is invalid