diff --git a/frontend/src/main.js b/frontend/src/main.js index 70b26641..593d534b 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -5,7 +5,9 @@ import { createHistory } from 'history' import { useRouterHistory } from 'react-router' const browserHistory = useRouterHistory(createHistory)({ - basename: window['NOMAD_ENDPOINT'] + // attempt to remove host+port from NOMAD_ENDPOINT + // long term this could be done by splitting on "/" and take chunk "1..." + basename: window['NOMAD_ENDPOINT'].replace(/^[-.a-zA-Z0-9]+:?[0-9]*/, '') }) import { Provider } from 'react-redux'