more link fixes.
This commit is contained in:
@@ -38,7 +38,7 @@ func CreateSyndicateHandler(db *sql.DB) http.HandlerFunc {
|
|||||||
helpers.SetFlash(w, r, "Syndicate created successfully")
|
helpers.SetFlash(w, r, "Syndicate created successfully")
|
||||||
}
|
}
|
||||||
|
|
||||||
http.Redirect(w, r, "/account/syndicates", http.StatusSeeOther)
|
http.Redirect(w, r, "/syndicate", http.StatusSeeOther)
|
||||||
default:
|
default:
|
||||||
helpers.RenderError(w, r, http.StatusMethodNotAllowed)
|
helpers.RenderError(w, r, http.StatusMethodNotAllowed)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ func AcceptInviteHandler(db *sql.DB) http.HandlerFunc {
|
|||||||
} else {
|
} else {
|
||||||
helpers.SetFlash(w, r, "You have joined the syndicate")
|
helpers.SetFlash(w, r, "You have joined the syndicate")
|
||||||
}
|
}
|
||||||
http.Redirect(w, r, "/syndicates", http.StatusSeeOther)
|
http.Redirect(w, r, "/syndicate", http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Create</button>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user