Static GitHub Issues

[1953] Opening page as a modal and changing route

prev: How to properly inline external JS referenced in the Nuxt generated HTML files?
next: import node-modules scss that imports yet more node-modules scss

I have a shopping cart which is opened as a modal, but i would like to have it as a route on top of the page it is opened in. Which approach would i have to use in order to implement this? This would be the scenario:

  • User has entered route /about/
  • User clicks "Open cart" button
  • Cart modal opens on top of /about/ page, but changes route to /cart/
  • User clicks "Close cart" button, and route goes back to /about/
<!--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/c1741">#c1741</a>)</em></sub></div>