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:Omit query and hash part if both apears in path #590

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aliraad79
Copy link

Hi
As mentioned in #575 issue if path have both ?foo=bar and # foo the page.js only removes # foo part
so i fix this in this commit and now the output is:
canonicalPath /foo?hello=there
pathname /foo
canonicalPath /foo#hash
pathname /foo
canonicalPath /foo?hello=there#hash
pathname /foo

It's my first time contributing to this repo so I'm very happy if anyone has a comment on this.
also i run test and everything works fine

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.

1 participant