Closed handiworknyc closed 2 years ago
Hi @gmrchk hoping you can help me.
I'm using wordpress.
My URL structure is : http://localhost:8888/cdw/work/telesign/ http://localhost:8888/cdw/work/foo/ http://localhost:8888/cdw/work/bar/ http://localhost:8888/cdw/work/etc/
http://localhost:8888/cdw/work/telesign/
http://localhost:8888/cdw/work/foo/
http://localhost:8888/cdw/work/bar/
http://localhost:8888/cdw/work/etc/
I just want to assign the route name "work" to any URL containing work.
None of these are working though:
routes: [ { name: 'work', path: '/work/:slug' }, ]
not working:
routes: [ { name: 'work', path: '/work/(.*)' }, ]
Please help! thanks
Your routes all start with cdw, the path definitions should start with /cdw/work.
cdw
/cdw/work
Thank you!!!! That was too obvious
Great!
Hi @gmrchk hoping you can help me.
I'm using wordpress.
My URL structure is :
http://localhost:8888/cdw/work/telesign/
http://localhost:8888/cdw/work/foo/
http://localhost:8888/cdw/work/bar/
http://localhost:8888/cdw/work/etc/
I just want to assign the route name "work" to any URL containing work.
None of these are working though:
not working:
Please help! thanks