diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-13 02:51:12 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-13 02:51:12 +0200 |
commit | e6ed8abafba9eafddc7e9003a8a5d93f5a37c362 (patch) | |
tree | a14bb708b65531d8eb4ca3d84abab12e50c7111f | |
parent | 6f3ef8e522272f54a5147b152ccc69444d380c7b (diff) | |
download | www-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.html | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |