Fixed: restoring scroll position when going back to index page

This commit is contained in:
ta264 2020-08-26 22:38:48 +01:00 committed by Qstick
parent e681469857
commit 1bc52d0138
9 changed files with 54 additions and 9 deletions

View file

@ -53,7 +53,10 @@ class PageHeader extends Component {
<div className={styles.logoContainer}>
<Link
className={styles.logoLink}
to={`${window.Lidarr.urlBase}/`}
to={{
pathname: '/',
state: { restoreScrollPosition: true }
}}
>
<img
className={styles.logo}