aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/header.tt2
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/header.tt2')
-rw-r--r--tmpl/header.tt24
1 files changed, 3 insertions, 1 deletions
diff --git a/tmpl/header.tt2 b/tmpl/header.tt2
index edfa773..5360b4f 100644
--- a/tmpl/header.tt2
+++ b/tmpl/header.tt2
@@ -16,7 +16,9 @@
}
else {
document.write('<base href="[% base_url | html %]">');
- document.write('<meta http-equiv="Refresh" content="1;+trees">');
+ var base = '[% base_url | html %]';
+ base = base.replace(/\/ajax[+][*]\/?/, '/');
+ document.write('<meta http-equiv="Refresh" content="0;url=' + base + '+trees">');
use_ajax_navigation = 0;
}
[% END %]