rafgraph / spa-github-pages

Host single page apps with GitHub Pages
https://spa-github-pages.rafgraph.dev
MIT License
3.83k stars 565 forks source link

Query params are garbled #33

Closed hyvyys closed 3 years ago

hyvyys commented 4 years ago

The following URL with query:

http://localhost:8080/search?lang=English&q=abc&w=def&f=0101111100&p=10

is transformed into this:

http://localhost:8080/searc10?abc

I see that the script references q and p params of the query. Are these parameter names somehow reserved, beyond the scope of this script? Are they some params appended by GitHub?

rafgraph commented 3 years ago

v6 no longer relies on q and p in the query, so this issue should be fixed. Please use the latest version of the redirect scripts in index.html and 404.html.