Hey there! I'm having trouble with getting internal links working, with a BasicNewsRecipe. I'm creating a recipe for The Codeless Code. Almost everything works, except for internal links. Basically, it is grabbing every article that has a URL that resembles this:
http://thecodelesscode.com/case/171
And adding that to the feed. All the way from 1 up to 184, and putting them into a nice book. In preprocess_html, I am stripping out all of the links, except the ones that begin with /case/. However, no matter what I do, I can't seem to get those links within the book to work at all.
If I leave them alone (ie, href="/case/152"), it generates this error:
Referenced file u'/case/152' not found
If I change it to the full URI (ie,
http://thecodelesscode.com/case/152), then it works fine, but it leaves a hyperlink to the website, not to the chapter inside the ebook.
If I change it to a relative URI (ie, href="152") it will just say that it can't find u'152'.
Is there a trick to what I'm trying to do? Or is the BasicNewsRecipe just not intended for this sort of thing?
Thanks!