I want to check some url params to change the layout of my page before I initiate the page load. I tried to use a middleware script to do so, but this middleware script seems to be ignored at the client's side at the beginning.
For now I put my code into the created method in my component, but I was wondering if there is a nicer way. Maybe using a plugin which runs at the beginning?
Thanks for input on this behalf.
Cheers
<!--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/c1928">#c1928</a>)</em></sub></div>