page.js icon indicating copy to clipboard operation
page.js copied to clipboard

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

Open aliraad79 opened this issue 3 years ago • 0 comments

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

aliraad79 avatar Dec 15 '21 09:12 aliraad79