Static GitHub Issues

[3283] Redirect not working inside plugin

prev: Cannot read property 'middleware' of undefined
next: vue cli plugin?

Version

v1.4.0

Reproduction link

None

Steps to reproduce

  1. Create a plugin(ssr: false) with a redirect.
  2. Run the app
  3. Watch the redirect not working

What is expected ?

To redirect.

What is actually happening?

Nothing. + If i invoke context.next('') before the redirect or set it async(setTimeout 0), it works BUT doesn't change layout.

Thanks in advance!

<!--cmty--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6996">#c6996</a>)</em></sub></div>