mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
Fix path routing issue that prevented object navigation in different deployment paths (#2331)
This commit is contained in:
parent
a27b3737f1
commit
c7ffcbf7e0
@ -60,6 +60,10 @@ class ApplicationRouter extends EventEmitter {
|
||||
}
|
||||
|
||||
handleLocationChange(pathString) {
|
||||
if (pathString[0] !== '/') {
|
||||
pathString = '/' + pathString
|
||||
}
|
||||
|
||||
let url = new URL(
|
||||
pathString,
|
||||
`${location.protocol}//${location.host}${location.pathname}`
|
||||
|
Loading…
Reference in New Issue
Block a user