diff --git a/site/theme/template/Content/MainContent.jsx b/site/theme/template/Content/MainContent.jsx index 475787fc59..280ecc2f75 100644 --- a/site/theme/template/Content/MainContent.jsx +++ b/site/theme/template/Content/MainContent.jsx @@ -75,7 +75,7 @@ export default class MainContent extends React.Component { if (!nextProps || nextProps.location.pathname !== this.props.location.pathname) { this.bindScroller(); } - if (!window.location.hash) { + if (!window.location.hash && nextProps && nextProps.location.pathname !== this.props.location.pathname) { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; return;