superstatic
superstatic copied to clipboard
Capture Segments in Rewrites
Is there any reason why rewrites wouldn't support adding segment captures just like redirects?
There is no honest reason to not support segment captures in rewrites, however you can sort of get around that now using a cloud function (which adds more overhead for something that should be a simple lookup in the backend)
EDIT: Actually, looking at the code I noticed that redirects use a regular exp to test, bypassing minimatch... which would suggest regex is used completely but I know from experience on the live server that regex doesn't work (but I didn't test very extensively)