mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #169] Some relative links don't get rewritten #35
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Cyberbeni on GitHub (Oct 18, 2023).
Original GitHub issue: https://github.com/slurdge/goeland/issues/169
Describe the bug
Relative links in certain RSS feeds don't get rewritten
To Reproduce
Expected behavior
Relative links in the linked rss feed get rewritten
@Cyberbeni commented on GitHub (Oct 19, 2023):
I found out that you can specify the base url for relative links, which should be more robust than trying to regex all the possible ways to write relative links:
@slurdge commented on GitHub (Oct 27, 2023):
I'll look into it. You suggest that goeland manually put the
baseinto the email right ?@Cyberbeni commented on GitHub (Oct 27, 2023):
I currently use different templates for this. Using
basedoesn't work if multiple feeds are merged and would need different base urls, so I don't know what would be the best solution.@slurdge commented on GitHub (Oct 27, 2023):
You are right, and even Gmail&Hotmail would filter out the base. I've added an additional rule into the "links" filter, that rewrite src&href with the correct base URL. It works in your two examples, so let's cross fingers some strange feeds won't pop out.
@slurdge commented on GitHub (Oct 27, 2023):
Please try 0.16.0 and tell me if the situation is better :)
@Cyberbeni commented on GitHub (Oct 27, 2023):
The newest ghcr.io docker image is still 0.15.0
edit: the build is still in progress: https://github.com/slurdge/goeland/actions/runs/6668620883/job/18124562936
@slurdge commented on GitHub (Oct 27, 2023):
My bad, action is still running :)
@Cyberbeni commented on GitHub (Oct 27, 2023):
It seems to be working correctly