Cosmetic improvements

This commit is contained in:
Taras Kushnir
2026-01-10 12:04:32 +02:00
parent 3cbcb9bab5
commit 27495ae7ee
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ func Redirect(url string, code int, w http.ResponseWriter, r *http.Request) {
} else {
slog.Log(r.Context(), LevelTrace, "Redirecting using location header", "url", url)
w.Header().Set("Location", url)
http.Redirect(w, r, url, http.StatusSeeOther)
http.Redirect(w, r, url, code)
}
}

View File

@@ -8,7 +8,7 @@
hx-on::config-request="event.detail.path += '/'+this.value"
hx-swap="innerHTML">
<option value="{{ $.Const.DashboardEndpoint }}">Properties</option>
<option value="{{ $.Const.SettingsEndpoint }}" selected>Members</option>
<option value="{{ $.Const.MembersEndpoint }}" selected>Members</option>
<option value="{{ $.Const.SettingsEndpoint }}">Settings</option>
<option value="{{ $.Const.EventsEndpoint }}">Audit logs</option>
</select>