Fixed: '/series' URL Base breaking UI navigation

Closes #4148
pull/4164/head
Robin Dadswell 4 years ago committed by GitHub
parent 0ff889c3be
commit cc39d4ee23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save