Skip to content

Commit

Permalink
Merge pull request #186 from shawnbuso/back2index
Browse files Browse the repository at this point in the history
Fix back-arrow path.
  • Loading branch information
shawnbuso authored Mar 6, 2019
2 parents 8fae6ef + 7a9d50d commit c01d1f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codelab-elements/google-codelab/google_codelab.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ class Codelab extends HTMLElement {
return '/';
}

if (index === 'index') {
index = '';
}
const u = new URL(index, document.location.origin);
return u.pathname;
}
Expand Down

0 comments on commit c01d1f3

Please sign in to comment.