more link fixes.

This commit is contained in:
2025-04-04 11:12:54 +01:00
parent 292db01011
commit f6350b1d7f
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
}

View File

@@ -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)
}
}

View File

@@ -20,7 +20,7 @@
</div>
<button type="submit" class="btn btn-primary">Create</button>
<a href="/syndicates" class="btn btn-secondary">Cancel</a>
<a href="/syndicate" class="btn btn-secondary">Cancel</a>
</form>
</div>
{{ end }}