diff options
author | Peter Grassberger <petertheone@gmail.com> | 2015-08-02 22:29:08 (GMT) |
---|---|---|
committer | Peter Grassberger <petertheone@gmail.com> | 2015-08-02 22:29:08 (GMT) |
commit | 8e34dfc158906ad1ddf5810b8d0a88be6b7ffb1f (patch) | |
tree | 488c3d54f54f8fee6de97a3bb67f29c7f4ac60ed /www/js/utils.js | |
parent | 5a3b14483b992969f7f9f1d5fe59b008b20db2c9 (diff) |
switch to hashless urls
Diffstat (limited to 'www/js/utils.js')
-rw-r--r-- | www/js/utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/utils.js b/www/js/utils.js index 2c69b73..2b5d576 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -96,7 +96,7 @@ function get_rd_week(msEpoch) { return week; } -function locationHashValue() { - var hash = window.location.hash.match(/#([a-z]+)\/?.*/); - return hash ? hash[1] : ''; +function locationHrefValue() { + var value = window.location.href.match(/import.helsinki.at\/([a-z]+)\/?.*/); + return value ? value[1] : ''; } |