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

Support redirect to route name in middleware #2421

Closed
pschaub opened this issue Dec 19, 2017 · 1 comment · Fixed by #2432
Closed

Support redirect to route name in middleware #2421

pschaub opened this issue Dec 19, 2017 · 1 comment · Fixed by #2432
Labels

Comments

@pschaub
Copy link

pschaub commented Dec 19, 2017

In a middleware we can do a redirect with e.g. redirect('/login').

But how can we redirect based on a route name?

redirect({name: 'login'}) is currently not possible.

I think it's a bad idea to do redirects on absolute paths instead of route names.

This feature request is available on Nuxt.js community (#c2100)
@lock
Copy link

lock bot commented Nov 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants