Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
book.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jan 2008 at 11:58 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Viewing the printer-friendly version of books or book pages the links containing reletive references were found as wrong (even the reference in the page header to the misc/print.css stylepage).
Possible reason: the trailing slash is missing from base_url in the header part of the generated HTML page
Suggested solution: replace the following line in file modules/bookbook-export-html.tpl.php
<base href="<?php print $base_url; ?>" />
by this line:
<base href="<?php print $base_url .'/'; ?>" />
Comments
Comment #1
icserny commentedThis bug is still present in the recent (RC3) release as well...
Comment #2
ench0 commentedAccording to this:
http://drupal.org/node/140714#comment-227688
the Drupal $base_url (File system path) should NOT contain a trailing slash (Drupal will add it for you). So if this module relies on $base_url containing a slash it's a bug... looks like it doesn't though, it's just that the wording above, in the title and in the body is a little misleading...
I think it should rather be something like:
book.module needs to add a Trailing slash to base_url in printer-friendly views
Comment #3
dpearcefl commentedDoes this issue exist in current D6?
Comment #4
dpearcefl commented