superstatic icon indicating copy to clipboard operation
superstatic copied to clipboard

Capture Segments in Rewrites

Open craylward opened this issue 7 years ago • 1 comments

Is there any reason why rewrites wouldn't support adding segment captures just like redirects?

craylward avatar Feb 08 '18 16:02 craylward

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)

feildmaster avatar Apr 29 '19 10:04 feildmaster