Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 11:23 UTC
Updated:
15 Nov 2009 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
reload commentedwith code tags:
this link in print view :
<a href="#anchor">turns into:
<a href="print/subdirectory/pagename#anchor">Comment #2
aasarava commentedWe're having the same problem. I'm attaching the patch for print.pages.inc (version 6.x-1.10) that should hopefully fix it. It's a simple one:
Change line 396 from:
to:
Be sure to check all your other links to make sure this doesn't mess anything else up. Can the maintainers or someone more familiar with the code weigh in on whether this is an appropriate fix?
Comment #3
jcnventuraIndeed, the path needs to be made absolute so that anchors in pages in non-root paths still work.. However the patch in #2 fails in Drupal sites which are installed in a sub-path of the server's document root, instead of '/' it needs to be base_path().
I have committed a patch that fixes this to CVS.