From a24c4d397af2fdfb1d1cdf8a6055781250ae2d5b Mon Sep 17 00:00:00 2001 From: ddl-rliu <140021987+ddl-rliu@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:37:51 -0700 Subject: [PATCH] fix: Broken breadcrumbs when using custom BASE_URL (#861) Use BASE_URL Signed-off-by: ddl-rliu --- .../oss-console/src/components/Breadcrumbs/registry/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oss-console/src/components/Breadcrumbs/registry/index.ts b/packages/oss-console/src/components/Breadcrumbs/registry/index.ts index 386a3e07c..17357ea90 100644 --- a/packages/oss-console/src/components/Breadcrumbs/registry/index.ts +++ b/packages/oss-console/src/components/Breadcrumbs/registry/index.ts @@ -106,7 +106,7 @@ export class BreadcrumbRegistry { static makeUrlSegments(location: Location, projectId = '', domainId = '') { const pathName = location.pathname; - const basePath = process.env.BASE_PATH || '/console'; + const basePath = process.env.BASE_URL || '/console'; // Remove first occurence of base path const pathNameWithoutBasePath = pathName.replace(basePath, '');