Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect not generated when protected page accessed directly #332

Closed
ColtonProvias opened this issue Apr 13, 2019 · 3 comments · Fixed by #360
Closed

Redirect not generated when protected page accessed directly #332

ColtonProvias opened this issue Apr 13, 2019 · 3 comments · Fixed by #360
Labels

Comments

@ColtonProvias
Copy link

Version

v4.5.3

Reproduction link

https://github.com/ColtonProvias/auth-issue

Steps to reproduce

  1. Clone the linked repo locally.
  2. Run yarn install
  3. Run yarn run dev
  4. Go to http://localhost:3000 and try clicking both links on the front page.
  5. Or try going to http://localhost:3000/protected directly.

What is expected ?

Accessing /protected should automatically redirect to /login, and the page should say that you were redirected from /protected. This should work either directly or through both links.

What is actually happening?

When accessing the page directly or via the non nuxt-link link, no redirect is provided to the login page. They should also generate the same result as accessing it via nuxt-link.

This bug report is available on Nuxt community (#c312)
@MathiasCiarlo
Copy link
Collaborator

MathiasCiarlo commented Apr 14, 2019

Been having issues with this for so long, I just submitted a pull request that fixes it! :)

@MathiasCiarlo
Copy link
Collaborator

MathiasCiarlo commented Apr 14, 2019

This is a duplicate of #326 and #134

@pi0
Copy link
Member

pi0 commented May 30, 2019

Should be fixed in v4.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants