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!
|