diff --git a/controllers/entriesController.go b/controllers/entriesController.go index bac1aa6..b8d6c23 100644 --- a/controllers/entriesController.go +++ b/controllers/entriesController.go @@ -91,7 +91,7 @@ func GetPreviousEntry(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID)) + c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID)) } func GetNextEntry(c *gin.Context) { @@ -118,7 +118,7 @@ func GetNextEntry(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID)) + c.Redirect(http.StatusTempopraryRedirect, fmt.Sprintf("/entries/%s/show", prevEntryID)) } func GetEntries(c *gin.Context) { @@ -325,7 +325,7 @@ func DeleteEntry(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("/accessions/%d/show", entry.AccessionID)) + c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("/accessions/%d/show", entry.AccessionID)) } diff --git a/controllers/userController.go b/controllers/userController.go index ecd610a..cf69985 100644 --- a/controllers/userController.go +++ b/controllers/userController.go @@ -174,7 +174,7 @@ func ResetPassword(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, "/users") + c.Redirect(http.StatusTemporaryRedirect, "/users") } func DeactivateUser(c *gin.Context) { @@ -197,7 +197,7 @@ func DeactivateUser(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, "/users") + c.Redirect(http.StatusTemporaryRedirect, "/users") } @@ -221,7 +221,7 @@ func ReactivateUser(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, "/users") + c.Redirect(http.StatusTemporaryRedirect, "/users") } @@ -245,7 +245,7 @@ func MakeUserAdmin(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, "/users") + c.Redirect(http.StatusTemporaryRedirect, "/users") } func RemoveUserAdmin(c *gin.Context) { @@ -268,7 +268,7 @@ func RemoveUserAdmin(c *gin.Context) { return } - c.Redirect(http.StatusPermanentRedirect, "/users") + c.Redirect(http.StatusTemporaryRedirect, "/users") } func LoginUser(c *gin.Context) { c.HTML(http.StatusOK, "users-login.html", gin.H{}) } diff --git a/medialog.go b/medialog.go index 5c4d62d..54f45d5 100644 --- a/medialog.go +++ b/medialog.go @@ -16,7 +16,7 @@ var ( gormDebug bool ) -const version = "v0.2.0-beta" +const version = "v0.2.1-beta" func init() { diff --git a/templates/global/footer.html b/templates/global/footer.html index 07c033d..d274f7b 100644 --- a/templates/global/footer.html +++ b/templates/global/footer.html @@ -4,7 +4,7 @@