mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
parent
0ff889c3be
commit
cc39d4ee23
@ -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.Sonarr.urlBase}/`)) {
|
|
||||||
el = RouterLink;
|
|
||||||
linkProps.to = to;
|
|
||||||
linkProps.target = target;
|
|
||||||
} else {
|
} else {
|
||||||
el = RouterLink;
|
el = RouterLink;
|
||||||
linkProps.to = `${window.Sonarr.urlBase}/${to.replace(/^\//, '')}`;
|
linkProps.to = `${window.Sonarr.urlBase}/${to.replace(/^\//, '')}`;
|
||||||
|
@ -53,7 +53,7 @@ class PageHeader extends Component {
|
|||||||
<div className={styles.logoContainer}>
|
<div className={styles.logoContainer}>
|
||||||
<Link
|
<Link
|
||||||
className={styles.logoLink}
|
className={styles.logoLink}
|
||||||
to={`${window.Sonarr.urlBase}/`}
|
to={'/'}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
className={styles.logo}
|
className={styles.logo}
|
||||||
|
Loading…
Reference in New Issue
Block a user