I'm in the process of developing a website that utilizes Middleman (Ruby) on the backend and VueJS on the front end, with vue-router managing routing. Specifically, in my vue-router configuration, I am rendering the Video component on /chapter/:id as shown below:
const routes = [
{
name: 'chapter',
path: '/chapter/:id',
component: Video,
props: true
},
]
When navigating using <router-link>
, everything functions correctly. However, upon page reload (e.g., /chapter/2), it displays 'File Not Found' from Middleman.
Is there a way to disable routing within Middleman?
Any assistance would be much appreciated! Thank you