My goal is to have a topic/:slug?
route, that would look like the following in a non-nuxt vue project:
e.g to have a slug as an optional parameter for the /topic
route.
My pages
folder looks like this:
However, the result is /topic/:slug
instead of /topic/:slug?
:
What am I doing wrong? Is it a bug?
<!--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/c2279">#c2279</a>)</em></sub></div>