Skip to content

Update wildcard route pattern in documentation#866

Merged
justinvdm merged 2 commits intoredwoodjs:mainfrom
valscion:patch-1
Nov 6, 2025
Merged

Update wildcard route pattern in documentation#866
justinvdm merged 2 commits intoredwoodjs:mainfrom
valscion:patch-1

Conversation

@valscion
Copy link
Copy Markdown
Contributor

@valscion valscion commented Nov 6, 2025

The example for wildcards should've probably used * character here.

Noticed this one when looking at the diff from #860

The example for wildcards should've probably used `*` character here.
@justinvdm
Copy link
Copy Markdown
Collaborator

Thanks @valscion!

* - Static: /about, /contact
* - Parameters: /users/:id, /posts/:postId/edit
* - Wildcards: /files/*, /api/star/download
* - Wildcards: /files/*, /api/*/download
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, on second thought, I think I see why it's like this :D this inadvertently ends the comment block (*/). Maybe we keep it like this then? I guess there's a way to escape it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, right! Ok so yeah, that's indeed difficult. Maybe *\/ is the way to go?

But maybe there's some other tool that would break if this was the case. How can we test it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if e2e passing we good! Still good callout though, if we find this happens to interact badly with something (maybe a vite plugin transform or somethiing?), we can change this back.

@justinvdm justinvdm merged commit 33a5ee4 into redwoodjs:main Nov 6, 2025
4 checks passed
@valscion valscion deleted the patch-1 branch November 6, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants