Skip to content

Commit

Permalink
Use BASE_URL
Browse files Browse the repository at this point in the history
Signed-off-by: ddl-rliu <[email protected]>
  • Loading branch information
ddl-rliu committed Apr 4, 2024
1 parent 34edde1 commit 1db296c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check warning on line 109 in packages/oss-console/src/components/Breadcrumbs/registry/index.ts

View check run for this annotation

Codecov / codecov/patch

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

Added line #L109 was not covered by tests

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

0 comments on commit 1db296c

Please sign in to comment.