Skip to content

Commit

Permalink
Fix surrounding document link (#6709)
Browse files Browse the repository at this point in the history
Fix getDiscoverPath app base path
  • Loading branch information
asteriscos authored May 27, 2024
1 parent 44a1a14 commit 27f8e85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function createTableRowDirective($compile: ng.ICompileService) {

function getDiscoverPath(){
const pathName = `${location.pathname}#`;
return `${location.origin}${pathName.replace('wazuh#', 'discover')}`;
return `${location.origin}${pathName.replace(/\/app\/(.*)/, '/app/discover')}`;
}

// create a tr element that lists the value for each *column*
Expand Down

0 comments on commit 27f8e85

Please sign in to comment.