Skip to content

Commit a24c4d3

Browse files
authored
fix: Broken breadcrumbs when using custom BASE_URL (#861)
Use BASE_URL Signed-off-by: ddl-rliu <richard.liu@dominodatalab.com>
1 parent 387366b commit a24c4d3

File tree

1 file changed

+1
-1
lines changed
  • packages/oss-console/src/components/Breadcrumbs/registry

1 file changed

+1
-1
lines changed

packages/oss-console/src/components/Breadcrumbs/registry/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class BreadcrumbRegistry {
106106

107107
static makeUrlSegments(location: Location, projectId = '', domainId = '') {
108108
const pathName = location.pathname;
109-
const basePath = process.env.BASE_PATH || '/console';
109+
const basePath = process.env.BASE_URL || '/console';
110110

111111
// Remove first occurence of base path
112112
const pathNameWithoutBasePath = pathName.replace(basePath, '');

0 commit comments

Comments
 (0)