serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

fix: missing url search when request auto redirect

Open conwnet opened this issue 4 years ago • 1 comments

serve-handler will trim the ending .html suffix from url.pathname and make a redirect but forgot take the search, it may cause errors sometimes.

conwnet avatar Jan 23 '21 07:01 conwnet

I have just encountered an issue related to this PR. All the query parameters are lost after the redirection:

For exemple: /test.html?var=123 is redirected to /test.

Can this be merged ?

pguilbert avatar Nov 26 '21 16:11 pguilbert