From c7ffcbf7e053c3aa824fad3d00b8471e45e6fe42 Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Mon, 25 Mar 2019 22:17:59 -0700 Subject: [PATCH] Fix path routing issue that prevented object navigation in different deployment paths (#2331) --- src/ui/router/ApplicationRouter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/router/ApplicationRouter.js b/src/ui/router/ApplicationRouter.js index b7290c38cc..e0fff0ef3a 100644 --- a/src/ui/router/ApplicationRouter.js +++ b/src/ui/router/ApplicationRouter.js @@ -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}`