#67671Logout from Backend throws exception due to malformed URL
Description
Since the refactoring of the User-Box to use fluid, it is no longer possible to logout from the Backend or to switch back to your own user after you switched in the BackenUser module.
The reason is a htmlencoded “&” which is representated as “&” in the URL. So the Module-Token is no longer recognized.
My current logut-URL looks like this:
http://my.core.loc/typo3/mod.php?M=logout&moduleToken=2739b4134abaea55df1c703677d0ac7ff4ab93ca
This URL is produced by the following Code in \TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem, line 109
htmlspecialchars(BackendUtility::getModuleUrl('logout'))