Skip to content
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

[i18n_subsites]: Fix broken feed links #1299

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jorgesumle
Copy link
Contributor

I think it fixes #1033

Comment on lines 107 to 108
if 'FEED_DOMAIN' not in overrides:
overrides['FEED_DOMAIN'] = posixpath.join(main_siteurl, lang)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use settings['FEED_DOMAIN'] instead of main_siteurl

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed what you said @avaris, but I think it's not the best idea. If you have FEED_DOMAIN set to SITEURL + '/feeds', for example, the link to the feeds for Czech will be like http://example.com/test/feeds/cz/all.atom.xml, and this plugin doesn't organize the output that way, so the links are broken.

In this case, when FEED_DOMAIN is None, it works just fine, but if it's provided it makes things more difficult and unexpected with that change.

rschiang added a commit to rschiang/pelican-plugins that referenced this pull request Aug 9, 2022
[i18n_subsites]: Fix broken feed links
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.

i18N_subsites and feed generation
2 participants