diff options
| -rw-r--r-- | templates/index.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html index d7eaba0..815e65a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,17 @@ <html> {{> head.html}} <body> +<script> +// legacy querystring-based shortcut redirection (if you use this anywhere, +// please try to avoid it; just removing the ? from the URL is a good way to +// migrate.) +var shortcut_link = window.location.search +if(shortcut_link.length > 0 && shortcut_link[0]==='?') { + setTimeout(function() { + window.location.replace("{{root}}"+shortcut_link.substring(1)) + }, 1); +} +</script> {{> header.html}} {{> searchform.html}} {{> bigcards.html}} |
