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

icserny’s picture

This bug is still present in the recent (RC3) release as well...

ench0’s picture

According 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

dpearcefl’s picture

Status: Needs review » Postponed (maintainer needs more info)

Does this issue exist in current D6?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Active

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.