|
|
@ -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(/^\//, '')}`;
|
|
|
|