Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix redirectOnDirectory #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptrmsk
Copy link
Contributor

@ptrmsk ptrmsk commented Feb 19, 2023

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

…i://site/staticFolder for example). Broke relative links in child pages
@ptrmsk
Copy link
Contributor Author

ptrmsk commented Feb 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant