Home

Issue: 1953

Opening page as a modal and changing route

[issue link]

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/
This question is available on Nuxt.js community (#c1741)