Fixed: '/indexers' URL Base breaking UI navigation

(cherry picked from commit 140547e42a32cbaf80e7a794c5be9bfb574e97a2)
pull/901/head
bakerboy448 3 years ago
parent cb74fade18
commit 2f5b55013a

@ -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.Prowlarr.urlBase}/`)) {
el = RouterLink;
linkProps.to = to;
linkProps.target = target;
} else { } else {
el = RouterLink; el = RouterLink;
linkProps.to = `${window.Prowlarr.urlBase}/${to.replace(/^\//, '')}`; linkProps.to = `${window.Prowlarr.urlBase}/${to.replace(/^\//, '')}`;

Loading…
Cancel
Save