Skip to content

Commit

Permalink
Fix login/logout redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Feb 1, 2024
1 parent 3dc8a86 commit 22e9fbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib-http/src/login-controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ reply login_controller::create_redirect_for_request(const request &req)
url /= requested_uri;
}

if (url.empty())
url = "/";

return reply::redirect(url, see_other);
}

Expand Down

0 comments on commit 22e9fbd

Please sign in to comment.