aschuhardt / Loxy

A web Gemini proxy
4 stars 0 forks source link

how to clear "${QUERY_STRING}" #1

Open roughnecks opened 2 months ago

roughnecks commented 2 months ago

Hello,

I'm trying loxy behind nginx and it works ok, but whenever I run a CGI, the "${QUERY_STRING}" remains in the URL, even if I'm clicking on a clean gemini link afterwards.

Any way to remove it?

Thanks!

roughnecks commented 2 months ago

A friend said it could be this:

https://github.com/aschuhardt/Loxy/blob/d3201340047b62c85720e0e1c7a6e3e8d86805dd/Loxy/LineRenderer.cs#L63

After you click a URL with ?query, all the other gemini URLs in html have ?query appended.

roughnecks commented 1 month ago

I just fixed this myself with a JS workaround, but a proper fix would be welcome. Any answer would also be appreciated.