You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to be a pain, but I was just thinking, won't this still be a problem for regexp-based routes? Since they will not go into the namedPath function and therefore will not get the new $ at the end. For example, in the demo website, the route /users\/([0-9]+)/ still matches this: https://elegua.netlify.app/users/998/abc/def/
Maybe the fix should have been applied before this line in resolve:
constm=(routeasRegExp).exec(path);
We should concatenate route with $ here instead of inside namedPath, before running exec
For example, in the demo page:
the resolve call will return
true
for urls such ashttps://elegua.netlify.app/blog/fake-post-0/abc
(see here or here)If I'm not mistaken, can be fixed by adding a
$
at the end ofnamedPath
:The text was updated successfully, but these errors were encountered: