Web admin: Preserve URL fragment when loging back

Fixes #1780