Use temporary redirects

This commit is contained in:
2019-06-03 15:06:57 +09:00
parent e11295019b
commit cf258573a8
12 changed files with 28 additions and 23 deletions

View File

@ -15,5 +15,5 @@ func Redirect(ctx aero.Context) error {
return ctx.Error(http.StatusUnauthorized, "Not logged in")
}
return ctx.Redirect(http.StatusFound, "/+" + user.Nick + ctx.Path())
return ctx.Redirect(http.StatusTemporaryRedirect, "/+" + user.Nick + ctx.Path())
}