summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2009-11-01 16:10:55 (GMT)
committer Joao Ventura2009-11-01 16:10:55 (GMT)
commita71a1de88c5698f63fa4b3d225d3981870725e8e (patch)
tree33dcc493dc3c7fab8e58bd609009726314fc2c11
parente25d0ecdf1950e56b39403014695284f5bdc177e (diff)
Fix #617888: fix anchor links in pages located in sub-directories
-rw-r--r--print.pages.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.pages.inc b/print.pages.inc
index 5004d75..e00585a 100644
--- a/print.pages.inc
+++ b/print.pages.inc
@@ -391,7 +391,7 @@ function _print_rewrite_urls($matches) {
}
// Because base href is the original page, change the link to
// still be usable inside the print page
- $matches[1] = str_replace($url, $_GET['q'] . $url, $matches[1]);
+ $matches[1] = str_replace($url, base_path() . $_GET['q'] . $url, $matches[1]);
}
else {
// URL is relative, convert it into absolute URL