Fixed: '/author' URL Base breaking UI navigation

This commit is contained in:
bakerboy448
2020-12-22 13:18:29 -06:00
committed by Qstick
parent 9a13790354
commit caaa8bfead
2 changed files with 1 additions and 5 deletions

View File

@@ -47,10 +47,6 @@ class Link extends Component {
el = 'a';
linkProps.href = to;
linkProps.target = target || '_self';
} else if (to.startsWith(`${window.Readarr.urlBase}/`)) {
el = RouterLink;
linkProps.to = to;
linkProps.target = target;
} else {
el = RouterLink;
linkProps.to = `${window.Readarr.urlBase}/${to.replace(/^\//, '')}`;

View File

@@ -53,7 +53,7 @@ class PageHeader extends Component {
<div className={styles.logoContainer}>
<Link
className={styles.logoLink}
to={`${window.Readarr.urlBase}/`}
to={'/'}
>
<img
className={styles.logo}