aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/tree_list.tt29
1 files changed, 8 insertions, 1 deletions
diff --git a/tmpl/tree_list.tt2 b/tmpl/tree_list.tt2
index d862cae..e517d0c 100644
--- a/tmpl/tree_list.tt2
+++ b/tmpl/tree_list.tt2
@@ -8,7 +8,14 @@
<script type="text/javascript" src=".static/js/lxrng-funcs.js"></script>
<link rel="shortcut icon" href=".static/gfx/favicon.png" type="image/png">
<link rel="stylesheet" href=".static/css/lxrng.css" type="text/css" title="LXRng">
-
+ [% IF !is_ajax %]
+ <script type="text/javascript">
+ var hashnav = location.hash.match(/^#(.+)/);
+ if (hashnav) {
+ document.write('<meta http-equiv="Refresh" content="0;url=[% base_url | html %]' + hashnav[1] + '">');
+ }
+ </script>
+ [% END %]
<title id="title">LXR Inventory</title>
</head>
<body>