diff --git a/public/render_app.tsx b/public/render_app.tsx index a7dee41c..80639003 100644 --- a/public/render_app.tsx +++ b/public/render_app.tsx @@ -5,12 +5,11 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import { BrowserRouter as Router, Route } from 'react-router-dom'; +import { HashRouter as Router, Route } from 'react-router-dom'; import { Provider } from 'react-redux'; import { AppMountParameters, CoreStart } from '../../../src/core/public'; import { FlowFrameworkDashboardsApp } from './app'; import { store } from './store'; -import { PLUGIN_ID } from '../common'; // styling import './global-styles.scss'; @@ -24,7 +23,7 @@ export const renderApp = ( params.element.className = 'stretch-absolute'; ReactDOM.render( - + ( { - if ( - hideInAppSideNavBar && - window.location.pathname.endsWith(`/app/${PLUGIN_ID}`) - ) { - window.location.href = EXPECTED_BASE_PATH; - window.dispatchEvent(new HashChangeEvent('hashchange')); - } + window.dispatchEvent(new HashChangeEvent('hashchange')); }); return () => {