mirror of
https://github.com/Readarr/Readarr
synced 2026-01-09 00:53:34 +01:00
Fixed: '/author' URL Base breaking UI navigation
This commit is contained in:
parent
9a13790354
commit
caaa8bfead
2 changed files with 1 additions and 5 deletions
|
|
@ -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(/^\//, '')}`;
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue