From f2dbf207151a0a81d565ef93bd4841ba6dd9cc0d Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Thu, 7 Jun 2018 16:02:04 -0700 Subject: [PATCH] Make browser Back button work as expected in the context of url queries syncing Replace rather than push browser history when syncing url queries. --- ui/src/dashboards/actions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/dashboards/actions/index.js b/ui/src/dashboards/actions/index.js index 1bd4c57bf..80cfbd7e2 100644 --- a/ui/src/dashboards/actions/index.js +++ b/ui/src/dashboards/actions/index.js @@ -1,5 +1,5 @@ import {bindActionCreators} from 'redux' -import {push} from 'react-router-redux' +import {replace} from 'react-router-redux' import _ from 'lodash' import queryString from 'query-string' @@ -427,7 +427,7 @@ export const syncURLQueryFromQueriesObject = ( ...updatedSearch, } - dispatch(push(updatedLocation)) + dispatch(replace(updatedLocation)) } export const syncURLQueryFromTempVars = (