My urls need to look something like this (example):
/yellow-wallpaper
I want to extract the word 'yellow' as my param value.
I've tried this:
/:color_name|^[a-z-]+-wallpaper$
But then color_name = yellow-wallpaper. I want color_name = yellow.
I tried this:
/:color_name|^[a-z-]+$-wallpaper
But I get 404 when trying to load the page.
Is it possible to have 'extra' url string fragments after a regex, between slashes?
Last updated