-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fails loading unqualified URLS with a path component #19
Comments
Please take a look at #21. It passed your tests. |
I tested out a772b4a and confirmed that astro now loads and renders a page with any URL I can throw at it. 🐛 However! It seems to introduce a new bug with relative link navigation. For example, if I open astro like this:
And then I try following the link to astro browser ( |
I got that too, but |
You're right, I was trying the wrong link. |
There's a new commit on the fix, to fix the fix :-) |
Thanks @nicwaller for bringing attention to this bug. As the last commit passed your tests I plan to merge them and close this issue in the following day if you're OK with the solution. |
I took a look and posted my feedback on the PR thread. It seems not quite ready yet. 😐 URL handling is really challenging, more than I expected! I think adding in some unit tests for URL handling might be warranted. Want me to send a PR with some unit tests? |
Thanks for the feedback on the PR.
Yes, that will be great. |
Finally fixed in #21. Thank you for the help. Feel free to open other issues if you find anything. |
🥂 Cheers! Happy to help. |
When I try opening a URL that is both unqualified (no
gemini://
prefix) and pathed (has/astro.gmi
as a suffix) I find that astro fails to render the page. When I exit astro, I see this error in the terminal:It also affects URLs opened from within astro. Press
o
thenderelict.garden/astro.gmi
.Debug Mode
Running astro in debug mode yields some insight.
Passing case:
Failing case:
Affected Versions
Reproducible for all versions versions from v0.8.0 onward. Most recently observed with v0.14.1 0642554.
I went back to 0.7.2 (ddb79dd) and observed that the page rendered properly when invoked as shown above. The bug with this kind of URL seems to be present in all versions after that.
However, using the same version 0.7.2, I got an error trying to open
derelict.garden/astro.gmi
from within astro.Passing cases
For completeness, all of the following test cases work correctly and without error. ✅
The text was updated successfully, but these errors were encountered: