jgkaplan / gemini-server

Node server for the gemini protocol, based on express
ISC License
65 stars 9 forks source link

fix redirectOnDirectory #28

Open ptrmsk opened 1 year ago

ptrmsk commented 1 year ago

No redirects were happening when browsing a static folder without a trailing backslash, despite the flag. (gemini://site/staticFolder for example, wouldn't redirect to /staticFolder/). This broke relative links

ptrmsk commented 1 year ago

This redirect strategy/fix doesn't work on all clients (Android's Buran is a big outlier here), but it works on many others (Lagrange, Deedum, Xenia). I'm guessing this is implementation-specific and not the server's fault.

I also noticed going to "gemini://site" causes issues, but that might be outside the scope of this