From 6d96f8c2cdc0eb67d67bb4a40e3513d85b043436 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Wed, 20 Jul 2022 12:59:34 +0200 Subject: [PATCH] [FIX] runbot: redirect to current page after login Because the login link redirected to `/`, when logging in the user would have to re-navigate to their previous page unless they'd remembered this issue and kept the original page around. Fix this because it's annoying and dumb: we know our URL when rendering templates, so we can redirect back there after login. Consideration: this could also be done on logout, however it seems likely that in that case the original page is "privileged" and when coming back we'd just get an access error. So don't do it for now. --- runbot/templates/utils.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/templates/utils.xml b/runbot/templates/utils.xml index 6d168eff..e7aa7613 100644 --- a/runbot/templates/utils.xml +++ b/runbot/templates/utils.xml @@ -121,7 +121,7 @@