1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-10-10 19:32:06 +00:00

feat(login): redirect back to original page after logging in

This commit is contained in:
telnet23 2025-09-25 22:07:53 -04:00
parent 5fa0709663
commit 5ffbf53eaf
No known key found for this signature in database
GPG key ID: 19979DA282694B50
4 changed files with 19 additions and 1 deletions

View file

@ -27,5 +27,7 @@ func (h *handler) showLoginPage(w http.ResponseWriter, r *http.Request) {
sess := session.New(h.store, request.SessionID(r))
view := view.New(h.tpl, r, sess)
redirectURL := request.QueryStringParam(r, "redirect_url", "")
view.Set("redirectURL", redirectURL)
html.OK(w, r, view.Render("login"))
}