Thread: Custom Cover
View Single Post
Old 12-10-2013, 09:54 PM   #6
cnfmsu
Member
cnfmsu began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jan 2012
Device: Nook
Hi Kovid,

I have 1 more question on links within the ARTICLE. For external links (external to the website), it works fine as they are the full URL address. However, for internal links (internal to the website), they don't not have the prefix for the website. Mostly they starts with "/".

I guess I need something like for the whole article:
if url.startswith('/'): url = 'http://www.sitename.com'+url

Please tell me how to handle this?
Do you have any example of such recipe?

Thanks!
cnfmsu is offline   Reply With Quote