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
Jared Scheib 2018-06-07 16:02:04 -07:00
parent e9c9b33b88
commit e55f362628
1 changed files with 2 additions and 2 deletions

View File

@ -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 = (