From 29e4d8b76b7cb4481a63eccb7ceba1b2793ea200 Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Wed, 11 Oct 2023 10:46:33 +0200 Subject: [PATCH 1/2] Fix: signOutTargetUrl determination Signed-off-by: Gabriel Huber --- .changeset/empty-clocks-argue.md | 5 +++++ packages/core-app-api/src/app/AppRouter.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/empty-clocks-argue.md diff --git a/.changeset/empty-clocks-argue.md b/.changeset/empty-clocks-argue.md new file mode 100644 index 0000000000..57e56fce7e --- /dev/null +++ b/.changeset/empty-clocks-argue.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-app-api': patch +--- + +Fixed bug in AppRouter to determine the correct signOutTargetUrl if app.baseUrl contains a basePath diff --git a/packages/core-app-api/src/app/AppRouter.tsx b/packages/core-app-api/src/app/AppRouter.tsx index b799983a3b..9d07be1ffd 100644 --- a/packages/core-app-api/src/app/AppRouter.tsx +++ b/packages/core-app-api/src/app/AppRouter.tsx @@ -70,7 +70,7 @@ function SignInPageWrapper({ }) { const [identityApi, setIdentityApi] = useState(); const configApi = useApi(configApiRef); - const basePath = getBasePath(configApi); + const basePath = readBasePath(configApi); if (!identityApi) { return ; From 58d70b9ae99dfce0318c12f4c9b6877843fe0413 Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Wed, 11 Oct 2023 11:14:02 +0200 Subject: [PATCH 2/2] Update .changeset/empty-clocks-argue.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Gabriel Huber --- .changeset/empty-clocks-argue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/empty-clocks-argue.md b/.changeset/empty-clocks-argue.md index 57e56fce7e..e3c5985f8a 100644 --- a/.changeset/empty-clocks-argue.md +++ b/.changeset/empty-clocks-argue.md @@ -2,4 +2,4 @@ '@backstage/core-app-api': patch --- -Fixed bug in AppRouter to determine the correct signOutTargetUrl if app.baseUrl contains a basePath +Fixed bug in `AppRouter` to determine the correct `signOutTargetUrl` if `app.baseUrl` contains a `basePath`