Revert partial changes from 6193fe2, keeping changes to preview_middleware and teams_new

This commit is contained in:
2026-02-19 19:01:07 +11:00
parent 113d51eef8
commit 6e4331e5eb
13 changed files with 73 additions and 311 deletions

View File

@@ -39,14 +39,6 @@ func SeasonLeaguePage(
}
defaultTab := season.GetDefaultTab()
// Draft seasons redirect to /seasons/{short}/{tab} instead
if season.Type == db.SeasonTypeDraft.String() {
redirectURL := fmt.Sprintf("/seasons/%s/%s", seasonStr, defaultTab)
http.Redirect(w, r, redirectURL, http.StatusSeeOther)
return
}
redirectURL := fmt.Sprintf(
"/seasons/%s/leagues/%s/%s",
seasonStr, leagueStr, defaultTab,