afc163
9 years ago
1 changed files with 2 additions and 2 deletions
@ -1,8 +1,8 @@ |
|||
<script> |
|||
var prefix = /^\/components/.test(location.pathname) ? location.pathname.replace(/^\//, '').split('/').join('-') : ''; |
|||
if (location.pathname === '/changelog') { |
|||
location.href = '/#/docs/react/' + location.pathname.replace(/\/?#/, '?scrollTo=' + prefix); |
|||
location.href = '/#/docs/react/changelog?scrollTo=' + location.hash; |
|||
} else { |
|||
location.href = '/#' + location.pathname.replace(/\/?#/, '?scrollTo=' + prefix); |
|||
location.href = '/#' + location.pathname + '?scrollTo=' + prefix + location.hash; |
|||
} |
|||
</script> |
|||
|
Loading…
Reference in new issue