Home

Issue: 2421

Support redirect to route name in middleware

[issue link]

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)