summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-05-13 02:51:12 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-05-13 02:51:12 +0200
commite6ed8abafba9eafddc7e9003a8a5d93f5a37c362 (patch)
treea14bb708b65531d8eb4ca3d84abab12e50c7111f
parent6f3ef8e522272f54a5147b152ccc69444d380c7b (diff)
downloadwww-e6ed8abafba9eafddc7e9003a8a5d93f5a37c362.tar.gz
www-e6ed8abafba9eafddc7e9003a8a5d93f5a37c362.tar.bz2
www-e6ed8abafba9eafddc7e9003a8a5d93f5a37c362.zip
add direct request to host with correct url and state to history
-rw-r--r--index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.html b/index.html
index 0180416..41d938d 100644
--- a/index.html
+++ b/index.html
@@ -119,8 +119,9 @@
var host = window.location.search.split('?')[1] || undefined;
if (host) {
- document.title = 'Hostinfo: ' + host;
render.host(host);
+ document.title = 'Hostinfo: ' + host;
+ History.replaceState({host: host}, 'Hostinfo: ' + host, 'index.html?' + host);
}
else {
render.index();