From cc39d4ee23b7d49abd883256ff0ddc5dcefe9161 Mon Sep 17 00:00:00 2001 From: Robin Dadswell Date: Sun, 13 Dec 2020 18:57:06 +0000 Subject: [PATCH] Fixed: '/series' URL Base breaking UI navigation Closes #4148 --- frontend/src/Components/Link/Link.js | 4 ---- frontend/src/Components/Page/Header/PageHeader.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/Components/Link/Link.js b/frontend/src/Components/Link/Link.js index 7ccb01078..7ac14b10f 100644 --- a/frontend/src/Components/Link/Link.js +++ b/frontend/src/Components/Link/Link.js @@ -47,10 +47,6 @@ class Link extends Component { el = 'a'; linkProps.href = to; linkProps.target = target || '_self'; - } else if (to.startsWith(`${window.Sonarr.urlBase}/`)) { - el = RouterLink; - linkProps.to = to; - linkProps.target = target; } else { el = RouterLink; linkProps.to = `${window.Sonarr.urlBase}/${to.replace(/^\//, '')}`; diff --git a/frontend/src/Components/Page/Header/PageHeader.js b/frontend/src/Components/Page/Header/PageHeader.js index 9a1117a49..11e6c056a 100644 --- a/frontend/src/Components/Page/Header/PageHeader.js +++ b/frontend/src/Components/Page/Header/PageHeader.js @@ -53,7 +53,7 @@ class PageHeader extends Component {