_content/tour: fix top-left link to homepage
Fixes golang/go#59094.
Change-Id: I240bb8abfd663f5e5dea687d28c1b1c5d4b58980
Reviewed-on: https://go-review.googlesource.com/c/website/+/481675
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/_content/tour/static/js/app.js b/_content/tour/static/js/app.js
index 3014db8..8c2dfeb 100755
--- a/_content/tour/static/js/app.js
+++ b/_content/tour/static/js/app.js
@@ -35,6 +35,10 @@
$rootScope.$on( "$locationChangeStart", function(event, next) {
var url = document.createElement('a');
url.href = next;
+ if (url.pathname == '/') {
+ window.location.href = next;
+ return;
+ }
if (url.pathname != '/tour/' || url.hash == '') {
return;
}