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
Read More links in the RSS feed use relative URLs #590
Comments
From the docstring of
Which is NEVER a good idea for RSS (and @ralsina does not want that function to differentiate between RSS and HTML.) (also, being the last person who bothered with those links, I am happy that it isn’t my fault.) |
HI @arusahni can you give me a little more data?
If it can't be fixed by tweaking the configuration, I'll fix it in the code, but I need a little hand to get there. |
@Kwpolska text() already munges the HTML too much, and has no idea where the resulting HTML will be used, which is necessary to use absolute links. So, the right place to fix those is at the plugin that actually generates the files, like the tag or rss plugins. Perhaps those plugins need to indicate text() that / should be mapped to http://foo.com/bar, the target is /baz/bat and links made absolute with that information. |
<a href="/blog/2012/01/implementing-custom-alert-dialogfragments.html">Read more...</a> They should be: <a href="http://arusahni.net/blog/2012/01/implementing-custom-alert-dialogfragments.html">Read more...</a> HTH!
|
Just to be sure: the links work well if you subscribe to your feed directly without feedburner, right? If yes, I think I know what's wrong and it's not horribly hard to fix :-) |
No, they don't. I went to a web-based RSS reader and subscribed to the On Sat, Aug 17, 2013 at 4:02 PM, Roberto Alsina notifications@github.comwrote:
|
Well, it does work in feedspot and newsblur. But anyway, I have a solution for it, it's probably going to be in master in a day or two, once I find the least-intrusive way to do it. |
I was using Digg Reader, FWIW. Here's the validator report. Thanks for looking into this! I'll be turning RSS teasers off until then. |
Well, RSS teasers is not the only thing that will break, links to other posts inside your HTML will break as well (but those are rather rare in general) |
@arusahni I just pushed a branch to fix this, can you take a look? If you end up with absolute links that are wrong, then you may need to tweak BASE_URL https://github.com/ralsina/nikola/pull/591 Let me know how it works! |
That worked for me! I didn't have to set a |
On 17/08/13 17:48, Aru wrote:
Yes, that's only needed if your site is not deployed to your server's root. I'll merge this then. |
On my site I have
RSS_TEASERS = True
. The generated RSS is broken, however, as the generated "Read More" links use relative URLs. Sure enough, this fails the feed validator with the following warning:The text was updated successfully, but these errors were encountered: