From caaa8bfeade1ad9e89a5ae7991ce0a0fc4e3f640 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 22 Dec 2020 13:18:29 -0600 Subject: [PATCH] Fixed: '/author' URL Base breaking UI navigation --- 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 e623a6a30..db717090f 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.Readarr.urlBase}/`)) { - el = RouterLink; - linkProps.to = to; - linkProps.target = target; } else { el = RouterLink; linkProps.to = `${window.Readarr.urlBase}/${to.replace(/^\//, '')}`; diff --git a/frontend/src/Components/Page/Header/PageHeader.js b/frontend/src/Components/Page/Header/PageHeader.js index 048179fd1..215f7b4f2 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 {