Change redirect status to 302 (#6562)
As discussed in #6546, changing redirect status to 302, so the redirect is only temporary
This commit is contained in:
parent
cf0552a395
commit
5f003105ef
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ Profile.getInitialProps = async ctx => {
|
|||
const redirectOnError = () =>
|
||||
process.browser
|
||||
? Router.push('/login')
|
||||
: ctx.res.writeHead(301, { Location: '/login' }).end()
|
||||
: ctx.res.writeHead(302, { Location: '/login' }).end()
|
||||
|
||||
try {
|
||||
const response = await fetch(apiUrl, {
|
||||
|
|
Loading…
Reference in a new issue