diff options
author | FChannel0 <77419041+FChannel0@users.noreply.github.com> | 2021-07-01 00:48:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 00:48:26 +0000 |
commit | 26e38b0e9ac4a9dd2e01312818eba4e84b02f1ca (patch) | |
tree | 718ae122dda4faf79ddff3c29c86205f968ece6f /main.go | |
parent | 0f7e3a6cf9ef67f7c0f8472925dcd24602224e4c (diff) | |
parent | 0fdc5e20c4de901d3042d88ae90a29092932ca92 (diff) |
Merge pull request #22 from knotteye/master
return user to catalog when posting from catalog
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -393,7 +393,11 @@ func main() { } } - http.Redirect(w, r, Domain + "/" + r.FormValue("boardName"), http.StatusMovedPermanently) + if(r.FormValue("returnTo") == "catalog"){ + http.Redirect(w, r, Domain + "/" + r.FormValue("boardName") + "/catalog", http.StatusMovedPermanently) + } else { + http.Redirect(w, r, Domain + "/" + r.FormValue("boardName"), http.StatusMovedPermanently) + } return } |