Why pathname did not match? #238
Replies: 1 comment 2 replies
-
I tested it on http://forbeslindesay.github.io/express-route-tester/ (and locally with 1.8.0) and it does match without the parentheses, can you share the path pattern you were trying to use? Edit: Local results: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I using react-router@5 which under the hood uses [email protected]
I have path pattern
/:projectKey/stat/:statType/:entryId?/(launch)?/:sublaunchpath?
. It must match pathname/my_project/stat/campaigns/123456/launch/links-rating
and it does only if the wordlaunch
is surrounded by parentheses:/(launch)?/
So my question is why the part
/stat/
does not need parentheses but the/launch/
part does?Beta Was this translation helpful? Give feedback.
All reactions