NIFIREG-295 - use hash for routing
Signed-off-by: Bryan Bende <bbende@apache.org>
diff --git a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.routes.js b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.routes.js
index 1b1b8d0..70630e6 100644
--- a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.routes.js
+++ b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/nf-registry.routes.js
@@ -109,6 +109,6 @@
component: NfRegistryManageBucket,
canActivate: [NfRegistryWorkflowsAdministrationAuthGuard],
outlet: 'sidenav'
-}]);
+}], { useHash: true });
export default NfRegistryRoutes;
diff --git a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.dev.html b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.dev.html
index 33e76d1..c3f06c0 100644
--- a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.dev.html
+++ b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.dev.html
@@ -19,7 +19,6 @@
<html>
<head>
<title>NiFi Registry</title>
- <base href="/">
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
diff --git a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.html b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.html
index 9f63abc..c3f06c0 100644
--- a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.html
+++ b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/template.html
@@ -19,13 +19,6 @@
<html>
<head>
<title>NiFi Registry</title>
- <script type="text/javascript">
- var pathname = document.location.pathname;
- var appRootIndex = document.location.pathname.indexOf('/nifi-registry/');
- var base = document.createElement('base');
- base.setAttribute('href', document.location.pathname.substring(0, appRootIndex) + '/nifi-registry/');
- document.head.appendChild(base);
- </script>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>