Static GitHub Issues

[518] router history with middleware

prev: Nuxt generate adding all styles inline
next: Doesn't work with vue-class-component

hey,

after my auth middleware redirect me to the login page, i want , after i log in , to go to the protected page instead of the index ..

i tried the beforeEach and afterEach hooks , the from parameter always point to the index page (where the link to the protected page exist)

even in the routes change events , there is no trace of the protected page image

any propositions?

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