fix 404 redirect

This commit is contained in:
afc163 2016-05-11 14:39:21 +08:00
parent f368fdda3b
commit 2d513ae576

View File

@ -4,6 +4,6 @@
if (location.pathname === '/changelog') {
location.href = '/#/docs/react/changelog' + scrollToString;
} else {
location.href = '/#' + location.pathname + scrollToString;
location.href = '/#' + location.pathname.replace(/\/$/, '') + scrollToString;
}
</script>