Ticket #1586: Fixing double slash on redirect URL after login