From e6811138fda1712aae3297a7cfcd7d1944e0abec Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 4 Apr 2020 20:04:57 +0200 Subject: [PATCH] morss: use redirected url in :getpage Still have to find how to do the same thing with feeds... --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index e3494aa..de9fe24 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -671,7 +671,7 @@ def cgi_page(environ, start_response): if contenttype in ['text/html', 'application/xhtml+xml', 'application/xml']: html = lxml.html.fromstring(BeautifulSoup(data, 'lxml').prettify()) - html.make_links_absolute(url) + html.make_links_absolute(con.geturl()) kill_tags = ['script', 'iframe', 'noscript']