Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2011 at 15:31 UTC
Updated:
31 May 2011 at 16:52 UTC
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
Comment #1
ndevelder commentedUpdate:
Playing around in the code in print.pages.inc, I changed:
to:
*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"
Comment #2
ndevelder commentedUpdate 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.