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:
parent
5fa0709663
commit
5ffbf53eaf
4 changed files with 19 additions and 1 deletions
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue