Make browser Back button work as expected in the context of url queries syncing
Replace rather than push browser history when syncing url queries.pull/10616/head
parent
e9c9b33b88
commit
e55f362628
|
@ -1,5 +1,5 @@
|
||||||
import {bindActionCreators} from 'redux'
|
import {bindActionCreators} from 'redux'
|
||||||
import {push} from 'react-router-redux'
|
import {replace} from 'react-router-redux'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import queryString from 'query-string'
|
import queryString from 'query-string'
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ export const syncURLQueryFromQueriesObject = (
|
||||||
...updatedSearch,
|
...updatedSearch,
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(push(updatedLocation))
|
dispatch(replace(updatedLocation))
|
||||||
}
|
}
|
||||||
|
|
||||||
export const syncURLQueryFromTempVars = (
|
export const syncURLQueryFromTempVars = (
|
||||||
|
|
Loading…
Reference in New Issue