mirror of
https://github.com/nasa/openmct.git
synced 2025-03-22 03:55:31 +00:00
get rid of root (#5483)
This commit is contained in:
parent
2540d96617
commit
0e707150e0
@ -107,7 +107,12 @@ export default {
|
||||
this.preview();
|
||||
} else {
|
||||
const objectPath = this.result.originalPath;
|
||||
const resultUrl = objectPathToUrl(this.openmct, objectPath);
|
||||
let resultUrl = objectPathToUrl(this.openmct, objectPath);
|
||||
// get rid of ROOT if extant
|
||||
if (resultUrl.includes('/ROOT')) {
|
||||
resultUrl = resultUrl.split('/ROOT').join('');
|
||||
}
|
||||
|
||||
this.openmct.router.navigate(resultUrl);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user