Hi All,

I have a situation in which there are absolute links to offsite urls that appear in the text of my page. These links are formatted properly, and behave properly, on the page itself, but when I view the print version, I get something like:

http://www.siteurl.com/http://test.com

Is there a link handling setting that I'm missing or is this a bug?

Then the pdf version gets it even more wrong, something like:

http://www.siteurl.com/http://www.siteurl.com/http://www.siteurl.com/htt...

I disabled the pathologic and global redirect modules to see if this had an affect, but saw no difference.
Thanks for any insight you can give!

Comments

ndevelder’s picture

Update:

Playing around in the code in print.pages.inc, I changed:

      $url = trim($urls[1], " \t\n\r\0\x0B\"'");

to:

      $url = trim($attribs[2], " \t\n\r\0\x0B\"'");

*the $urls array doesn't contain the actual address

And the urls are properly ignored when they are off-site, and constructed when they are on-site, but now the pdf writer (wkhtmlpdf) is writing on-site links as "file:///temp/testpage"

ndevelder’s picture

Status: Active » Closed (fixed)

Update 2:

Replaced my edited version of print.pages.inc with the original, and magically everything is working. Guess there was no problem...disregard previous statements.