Static GitHub Issues

[936] How does one add routes from the plugin?

prev: "Error: render function or template not defined in component: anonymous".
next: How to write tests in a scalable way

Hello. So, if I want to add some new routes from the plugin using router.addRoutes. It works, but it does not recognize the route on the first load (say for example I added /login and then load the page mysite.com/login). How do I do this properly if I want to maintain a plugin?

<!--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/c802">#c802</a>)</em></sub></div>