diff options
| author | grm <grm@eyesin.space> | 2026-09-14 00:47:08 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-14 00:47:08 +0300 |
| commit | 0de17af2318134549fa6f4db822ba6921b35f12f (patch) | |
| tree | d4654ddb9f8a32071753edb9d1b44629f6531e3a /internal | |
| parent | aeb19df4222269c585de55be5568326222df879d (diff) | |
| download | blogspace-0de17af2318134549fa6f4db822ba6921b35f12f.tar.gz blogspace-0de17af2318134549fa6f4db822ba6921b35f12f.tar.bz2 blogspace-0de17af2318134549fa6f4db822ba6921b35f12f.zip | |
Send the dashboard brand link to the overview when logged in
Clicking "Blogspace" in the top bar went to the public root blog; from
inside the dashboard it should go back to your blog's overview. /dashboard
already resolves that (own blog, or /admin/ for a superadmin without one),
so the link points there when there is a user and stays / on the login page.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/web/templates/partials/dashnav.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/partials/dashnav.html b/internal/web/templates/partials/dashnav.html index e46d7c3..0966f7b 100644 --- a/internal/web/templates/partials/dashnav.html +++ b/internal/web/templates/partials/dashnav.html @@ -1,6 +1,6 @@ {{define "dashnav"}}<div class="topbar"> <div class="topbar-inner"> - <a class="brand" href="/">Blogspace</a> + <a class="brand" href="{{if .User}}/dashboard{{else}}/{{end}}">Blogspace</a> {{if .User}} <span class="who">{{.User.Username}}{{if .User.IsSuperadmin}} (superadmin){{end}}</span> <span class="links"> |
