catch urls like /team/:teamID and /team/:teamID* (wildcard)
See original GitHub issueComing from this example: https://codesandbox.io/s/reverent-tesla-c0kq0 I would like to understnad if this is possible in Navaid now:
const router = Navaid()
.on("/", () => draw(PageHome))
.on("/teams", () => draw(PageTeamList))
.on("/team/:teamID/*", obj => draw(Team, obj))
.listen();
- using
.on("/team/:teamID/*", obj => draw(Team, obj))
doesn’t catch urls like “/team/1” - using
.on("/team/*", obj => draw(Team, obj))
catch urls like “/team/1” but as params inTeam
component I need the:teamID
parameter which iswild
in this case; the problem is if the URL is eg. like “/team/1/2/56/8”wild
is1/2/56/8
which is a wrong var in myTeam
component code.
UPDATE:
I need also something like this to catch: /team/1/shirt/5
.
Is there a way to catch both using something like /team/:teamID*
where *
here is a wildcard after :teamID
?
I hope I was clear. 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Can I search for URLs using wildcards? - FullStory Support
Yes! Use the “matches” URL operator to search against dynamic URL paths using a special syntax. Start your search using the event filter......
Read more >Get-TeamTargetingHierarchyStatus - Microsoft Learn
Get the status of a hierarchy upload (see Set-TeamTargetingHierarchy) ... to get the proper Group ID for each team. TeamID in row 3...
Read more >Wildcard URL Matching - SharpSpring Help
SharpSpring's wildcard URL matching feature allows you to create triggers for page visits with changing URL extensions.
Read more >Wildcards and regular expressions in URL
Wildcards and regular expressions in URL. Wildcards. Kerio Control allows using wildcards when you create a content rule based on a URL or...
Read more >Routes - React Location - TanStack
The text that matches a wildcard is extracted under the * key and is usable in many places like loaders, importers and elements,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My first thought is that all your routes will load the chunks immediately. They’ll still be code-split but that doesn’t help on its own if you’re loading everything upfront anyway.
My second thought is that I, personally, wouldn’t reach to make an abstraction if you’re only using this twice (main + 1 sub resource).
I can get to a computer later tonight and look at anything else in particular you’d like me to
Ok, ok. I now. Thank Luke. God bless you.