diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 17:21:27 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 17:21:27 +0100 |
commit | 57efc8d2173fdff1ef99157a2633d3f1d366a290 (patch) | |
tree | a68de14d0690a495c7641c6ef236be012b327ac9 /templates | |
parent | f5c307668c7fa3c367defc6e924d7c1e00303c16 (diff) | |
download | cerrado-57efc8d2173fdff1ef99157a2633d3f1d366a290.tar.gz cerrado-57efc8d2173fdff1ef99157a2633d3f1d366a290.tar.bz2 cerrado-57efc8d2173fdff1ef99157a2633d3f1d366a290.zip |
fix: Add leading slash to avoid redirect
Diffstat (limited to 'templates')
-rw-r--r-- | templates/navbar.qtpl | 4 | ||||
-rw-r--r-- | templates/navbar.qtpl.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl index 3cd1b39..e24edd8 100644 --- a/templates/navbar.qtpl +++ b/templates/navbar.qtpl @@ -31,9 +31,9 @@ const ( </div> <div class="navbar-nav ms-auto"> {% if IsLoggedIn(ctx) %} - <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/logout">logout</a> + <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/logout/">logout</a> {% else %} - <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/login">login</a> + <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/login/">login</a> {% endif %} {% comment %} Add this back once needed diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index d900c9c..b359ffb 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -101,7 +101,7 @@ func StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context, s Selection) { //line templates/navbar.qtpl:34 streaminsertIfEqual(qw422016, s, Login) //line templates/navbar.qtpl:34 - qw422016.N().S(`" href="/logout">logout</a> + qw422016.N().S(`" href="/logout/">logout</a> `) //line templates/navbar.qtpl:35 } else { @@ -111,7 +111,7 @@ func StreamNavbar(qw422016 *qt422016.Writer, ctx context.Context, s Selection) { //line templates/navbar.qtpl:36 streaminsertIfEqual(qw422016, s, Login) //line templates/navbar.qtpl:36 - qw422016.N().S(`" href="/login">login</a> + qw422016.N().S(`" href="/login/">login</a> `) //line templates/navbar.qtpl:37 } |