Skip to content

Conversation

@lexming
Copy link
Contributor

@lexming lexming commented Apr 11, 2023

PR Description

Fixes #19

Some RSS readers might render the atom feed locally without any further requests to the remote website. This breaks images in the feed as they are sourced from relative links as discussed in issue #19.

This PR fixes this issue by always using a complete URL based on blog_baseurl as source of images in the HTML contents of the feed. Blogs without a baseurl will continue to use relative paths in their feeds.

Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
@nabobalis nabobalis merged commit d14fd78 into sunpy:main Apr 11, 2023
@nabobalis
Copy link
Member

Thanks

@lexming lexming deleted the feed-img-uri branch April 11, 2023 14:56
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.

Option for absolute URLs in feed

2 participants