Closed adaboese closed 6 months ago
Try routes/images.$.tsx
The $
by itself is a splat route and matches everything, including /
.
You access it from your loader using params['*']
https://remix.run/docs/en/main/file-conventions/routes#splat-routes
That's it. Thank you!
I want to match
/images/$anythingThatFollows
I tried
/routes/images/$path
, but it matches only the first path segment, i.e. it won't work with /images/foo/bar/baz.jpg