Fixed: '/movie' URL Base breaking UI navigation

pull/5610/head
bakerboy448 4 years ago committed by Qstick
parent 3ab9af0663
commit 140547e42a

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

@ -53,7 +53,7 @@ class PageHeader extends Component {
return ( return (
<div className={styles.header}> <div className={styles.header}>
<div className={styles.logoContainer}> <div className={styles.logoContainer}>
<Link to={`${window.Radarr.urlBase}/`}> <Link to={'/'}>
<img <img
className={isSmallScreen ? styles.logo : styles.logoFull} className={isSmallScreen ? styles.logo : styles.logoFull}
src={isSmallScreen ? `${window.Radarr.urlBase}/Content/Images/logo.png` : `${window.Radarr.urlBase}/Content/Images/logo-full.png`} src={isSmallScreen ? `${window.Radarr.urlBase}/Content/Images/logo.png` : `${window.Radarr.urlBase}/Content/Images/logo-full.png`}

Loading…
Cancel
Save