Skip to content

Commit 27f8e85

Browse files
authored
Fix surrounding document link (#6709)
Fix getDiscoverPath app base path
1 parent 44a1a14 commit 27f8e85

File tree

1 file changed

+1
-1
lines changed
  • plugins/main/public/kibana-integrations/discover/application/angular/doc_table/components

1 file changed

+1
-1
lines changed

plugins/main/public/kibana-integrations/discover/application/angular/doc_table/components/table_row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function createTableRowDirective($compile: ng.ICompileService) {
124124

125125
function getDiscoverPath(){
126126
const pathName = `${location.pathname}#`;
127-
return `${location.origin}${pathName.replace('wazuh#', 'discover')}`;
127+
return `${location.origin}${pathName.replace(/\/app\/(.*)/, '/app/discover')}`;
128128
}
129129

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

0 commit comments

Comments
 (0)