Skip to content

Handle feeds that use relative paths for links #116

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

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

mtlynch
Copy link
Collaborator

@mtlynch mtlynch commented Mar 27, 2025

Some feeds use relative paths for the link field (e.g., "/item1" rather than "https://example.com/item1").

fusion's current behavior is to preserve the relative paths, but then when the user tries to click a link on one of these feeds, it sends the user to a non-existent path within fusion.

This fixes the interpretation of relative path links so that we automatically convert them back to absolute path URLs based on the feed URL.

Fixes #94

@0x2E
Copy link
Owner

0x2E commented Mar 28, 2025

Thanks!

@0x2E 0x2E merged commit f09b990 into 0x2E:main Mar 28, 2025
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.

[FR] Try to auto-fix feeds that present relative URLs
2 participants