choojs / choojs/choo

Support express style routing with trailing wildcard

Open
#561 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.8k
Forks
573
PR merge metrics
No merged PRs in 30d

Description

### Expected behavior
`/route/match*` is a standard behavior.

### Actual behavior
`/route/match*` breaks the router.

### Steps to reproduce behavior

If you do `/route/match*` , and then navigate to `/route/match/` or `/route/match` you get an error in both cases. So, you need to double up with:

`/route/match`
`/route/match/*`

And this creates discrepancy between `express` and `choo` methodology which is visible especially when passing routes down to `choo` from `express` level to accomplish SSR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.