Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Enable getRouteType() to parse full urls #68

Merged
merged 1 commit into from
May 2, 2024

Conversation

malaney
Copy link
Contributor

@malaney malaney commented May 1, 2024

getRouteType() expects url to be a path like /api/users.  But when using AppRouter the url passed is indeed a full url similar to https://yourhost.com/api/users. As a result, the matchers in getRouteType() fail to properly return the correct routeType. This small patch extracts the path from a full url so that the route type parsing works.

getRouteType() expects url to be a path like `/api/users`.  But when
using AppRouter the url passed is indeed a full url similar to
`https://yourhost.com/api/users`
@foyarash foyarash merged commit e7aa2b3 into premieroctet:master May 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants