Skip to content

Commit

Permalink
fix: Broken breadcrumbs when using custom BASE_URL (#861)
Browse files Browse the repository at this point in the history
Use BASE_URL

Signed-off-by: ddl-rliu <[email protected]>
  • Loading branch information
ddl-rliu committed Jun 13, 2024
1 parent 387366b commit a24c4d3
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';

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

0 comments on commit a24c4d3

Please sign in to comment.