-
Notifications
You must be signed in to change notification settings - Fork 450
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
Wrong img src url in rss #1162
Comments
What's your version of Nikola, and what's in your BASE_URL setting? |
Nikola v6.4.0 |
I'd have to check, to be honest. Can you put a dump of the site somewhere private and mail me the URL at ralsina (at) kde org? |
I think I found the issue. In the mentioned post: .. figure:: /images/umapper.png
Umapper (from http://sourceforge.net/projects/umapper) Nikola tries to be intelligent here, and makes those paths relative to We should probably find this “intelligence” bit and (a) nuke it, or (b) extend it to RSS. |
@tiagovaz I meant a dump of the sources and config of your site, not the output :-) But I see, the images links are different in the RSS. I have reproduced this. |
The problem seems to be in Post.text(), where document.make_links_absolute is removing the path, so the image ends up hanging from the root of the site instead of ~tiago Why that doesn't happen with the actual post page is troubling. |
@tiagovaz I have a fix, but it probably can't apply cleanly to 6.4.0... in the meantime, I see you made it work by hacking your webserver. |
hey, thanks for the fix, hope it can be pushed to a next release. And yes, I've just linked image dirs to my www_root. (ps: sorry for the wrong tarball :) |
Hi,
I'm hosting a nikola instance at http://acaia.ca/~tiago/. The generated RSS is removing the "/~tiago/" part from image sources, so I get many broken links in a feed reader.
Example: img alt="/images/umapper.png" src="http://acaia.ca/images/umapper.png"
It should be img alt="/images/umapper.png" src="http://acaia.ca/~tiago/images/umapper.png"
The config file is correct and the HTML is also generated correctly. I'm not sure if it's an issue with PyRSS2Gen or with nikola itself. Please let me know if you need further information.
Regards,
The text was updated successfully, but these errors were encountered: