You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the culprit here is parse_link from Hypertext. The issue stems from base_url() function of url::ParseOptions that cuts path elements from provided URL, if it doesn't have a trailing slash. This is a intended behavior, as noted in join() function (here).
@ranfdev How we should fix it? Lagrange for example just adds a trailing slash at the end of every URL. We could do that, or add a check in parse_link to know when to add slash.
I've tested the behavior of a simple http server running with python -m http.server, in a folder containing the files
├── subdir
│ ├── index.html
│ └── test.html
Once I try going to localhost/subdir, the python server redirects me to localhost/sudir/, adding a slash.
The slash should be added by the server. Only the server knows if localhost/subdir is a file or a folder.
Even the official gemini documentation does this. You can do, from your terminal
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Works fine if i do /recipes/fregides.gmi . this link works well in lagrange
Screenshots
If applicable, add screenshots to help explain your problem.
Software info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: