From f6350b1d7f7259d0e239566778b53fc4d015bca5 Mon Sep 17 00:00:00 2001 From: H3ALY Date: Fri, 4 Apr 2025 11:12:54 +0100 Subject: [PATCH] more link fixes. --- handlers/syndicate.go | 2 +- handlers/syndicate_invites.go | 2 +- templates/syndicate/create.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/syndicate.go b/handlers/syndicate.go index 0584be5..51d1be5 100644 --- a/handlers/syndicate.go +++ b/handlers/syndicate.go @@ -38,7 +38,7 @@ func CreateSyndicateHandler(db *sql.DB) http.HandlerFunc { helpers.SetFlash(w, r, "Syndicate created successfully") } - http.Redirect(w, r, "/account/syndicates", http.StatusSeeOther) + http.Redirect(w, r, "/syndicate", http.StatusSeeOther) default: helpers.RenderError(w, r, http.StatusMethodNotAllowed) } diff --git a/handlers/syndicate_invites.go b/handlers/syndicate_invites.go index 42f5f8e..364b392 100644 --- a/handlers/syndicate_invites.go +++ b/handlers/syndicate_invites.go @@ -78,7 +78,7 @@ func AcceptInviteHandler(db *sql.DB) http.HandlerFunc { } else { helpers.SetFlash(w, r, "You have joined the syndicate") } - http.Redirect(w, r, "/syndicates", http.StatusSeeOther) + http.Redirect(w, r, "/syndicate", http.StatusSeeOther) } } diff --git a/templates/syndicate/create.html b/templates/syndicate/create.html index 6e41ac0..0349de4 100644 --- a/templates/syndicate/create.html +++ b/templates/syndicate/create.html @@ -20,7 +20,7 @@ - Cancel + Cancel {{ end }}