Fix path routing issue that prevented object navigation in different deployment paths (#2331)

This commit is contained in:
Andrew Henry 2019-03-25 22:17:59 -07:00 committed by Deep Tailor
parent a27b3737f1
commit c7ffcbf7e0

View File

@ -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}`