Commit 6f41dab0 authored by Pascal Hartig's avatar Pascal Hartig

Fixed redirection from addyosmani.github.com

Reported by @amaboura
parent e78ec224
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
function redirect() { function redirect() {
if (location.hostname === 'addyosmani.github.com') { if (location.hostname === 'addyosmani.github.com') {
location.hostname = 'todomvc.com'; location.href = location.href.replace('addyosmani.github.com/todomvc',
'todomvc.com');
} }
} }
......
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
function redirect() { function redirect() {
if (location.hostname === 'addyosmani.github.com') { if (location.hostname === 'addyosmani.github.com') {
location.hostname = 'todomvc.com'; location.href = location.href.replace('addyosmani.github.com/todomvc',
'todomvc.com');
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment