mirror of https://github.com/lidarr/Lidarr
Fixed: '/artist' URL Base breaking UI navigation
This commit is contained in:
parent
ef5d1b2946
commit
c8454948aa
|
@ -47,10 +47,6 @@ class Link extends Component {
|
|||
el = 'a';
|
||||
linkProps.href = to;
|
||||
linkProps.target = target || '_self';
|
||||
} else if (to.startsWith(`${window.Lidarr.urlBase}/`)) {
|
||||
el = RouterLink;
|
||||
linkProps.to = to;
|
||||
linkProps.target = target;
|
||||
} else {
|
||||
el = RouterLink;
|
||||
linkProps.to = `${window.Lidarr.urlBase}/${to.replace(/^\//, '')}`;
|
||||
|
|
Loading…
Reference in New Issue