Skip to content
Snippets Groups Projects
Commit 8160bf78 authored by esikkala's avatar esikkala
Browse files

Hide updateURL experiments

parent 4224d1d0
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ export const updatePerspectiveHeaderExpanded = ({ resultClass, pageType }) => ({
type: UPDATE_PERSPECTIVE_HEADER_EXPANDED,
resultClass, pageType
});
export const updateURL = ({ resultClass = 'manuscripts', newURL }) => ({
type: UPDATE_URL,
resultClass, newURL
});
// export const updateURL = ({ resultClass = 'manuscripts', newURL }) => ({
// type: UPDATE_URL,
// resultClass, newURL
// });
......@@ -9,7 +9,7 @@ import history from './History';
import reducer from './reducers';
import rootEpic from './epics';
import App from './components/App';
import { updateURL } from './actions';
//import { updateURL } from './actions';
import 'react-sortable-tree/style.css';
import 'react-redux-toastr/lib/css/react-redux-toastr.min.css';
......@@ -31,13 +31,13 @@ epicMiddleware.run(rootEpic);
bindActionCreators(toastrActions, store.dispatch);
// update url on app load
store.dispatch(updateURL({ newURL: window.location.pathname + window.location.search }));
// update url on back/forward
window.onpopstate = () => {
store.dispatch(updateURL({ newURL: window.location.pathname + window.location.search }));
};
// // update url on app load
// store.dispatch(updateURL({ newURL: window.location.pathname + window.location.search }));
//
// // update url on back/forward
// window.onpopstate = () => {
// store.dispatch(updateURL({ newURL: window.location.pathname + window.location.search }));
// };
render(
<Provider store={store}>
......
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