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
RSS_PATH doesn't work as advertised (is path and filename, excluding .xml) #3024
Comments
if dest_type == 'rss':
return [self.site.config['RSS_PATH'](lang)], True I’m not sure what fix would be the best. To match the description, we can just add @felixfontein, @ralsina: any strong opinions on what to do with this? |
Actually, the I think the lines should be if dest_type == 'rss':
return [self.site.config['RSS_PATH'](lang), 'rss'], 'auto' That should lead to the documented behavior ( I'm not sure how to keep the current undocumented (and wrong) behavior in a sane way. Actually, I think we simply should not (so far, nobody else complained about it anyway, IIRC). |
BTW, as you're changing this, can you make the |
I'd would prefer to do that in a new PR (which doesn't require backporting to v7). Also, I'm not sure whether using It probably makes more sense to configure your webserver so it uses |
Or a neat rewrite/redirect rule (nginx): rewrite ^/blog/feed/?$ https://EXAMPLE.com/rss.xml break; (this is a 301 redirect, you can remove the URL to have two equally functional URLs, or otherwise make it a temporary 302 redirect) |
Thanks @felixfontein. I was going to say |
@tbm I'm glad you could resolve it this way :) |
See #3041 for discussing how to add more customization. |
+1 to keeping the documented behaviour and not caring about undocumented one. |
A fresh config says:
which is in line with other
_PATH
variables.But it seems
RSS_PATH
is actually path+filename (and.xml
is appended).With
RSS_PATH = "blog/
I getrender_taxonomies:output/blog/.xml
(instead ofblog/rss.xml
)With
RSS_PATH = blog/index.xml
I getrender_taxonomies:output/blog/index.xml.xml
The text was updated successfully, but these errors were encountered: