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 ;