Skip to content

fix:Omit query and hash part if both apears in path#590

Open
aliraad79 wants to merge 1 commit intovisionmedia:masterfrom
aliraad79:fix/omit-query-and-completly
Open

fix:Omit query and hash part if both apears in path#590
aliraad79 wants to merge 1 commit intovisionmedia:masterfrom
aliraad79:fix/omit-query-and-completly

Conversation

@aliraad79
Copy link
Copy Markdown

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