Skip to content
Snippets Groups Projects
Commit ff68eb9b authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

NG_UI : urls : SSDM-10428 - maintain the application path in URL

parent 64e6e18d
No related branches found
No related tags found
No related merge requests found
function getApplicationPath() {
return window.location.pathname.substr(
0,
window.location.pathname.lastIndexOf('/') + 1
)
}
export default {
getApplicationPath
}
import { createBrowserHistory } from 'history' import { createBrowserHistory } from 'history'
import actions from '@src/js/store/actions/actions.js' import actions from '@src/js/store/actions/actions.js'
import routes from '@src/js/common/consts/routes.js' import routes from '@src/js/common/consts/routes.js'
import url from '@src/js/common/url.js'
let history = createBrowserHistory({ let history = createBrowserHistory({
basename: '#' basename: url.getApplicationPath() + '#'
}) })
history.configure = store => { history.configure = store => {
......
...@@ -20,6 +20,7 @@ module.exports = { ...@@ -20,6 +20,7 @@ module.exports = {
aggregateTimeout: 300, aggregateTimeout: 300,
poll: 1000 poll: 1000
}, },
publicPath: '/ng-ui-path/',
proxy: { proxy: {
'/openbis': { '/openbis': {
target: 'http://localhost:8888', target: 'http://localhost:8888',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment