Closed brc-dd closed 1 year ago
Unfortunately it is expected. The route :splat*
does not match /foo/bar.md
, only the second one would. Since the idea is to rebuild a URL that would match correctly, this is the expected behavior.
It stands to reason that :splat*
could just be wrong too. There's no option in the library today for "implicitly use /
as the prefix", but there could be. And that might solve your issue. But I'd be inclined to suggest using the /
prefix explicitly unless there's a good reason you can't.
Is the behavior in first case expected? I think it should've yielded
'foo/bar.md'
👀