From c119c9a678336fc8fbeec0c43a046b8827a17705 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Thu, 11 Oct 2018 02:46:24 +0000 Subject: [PATCH] web: use window.location in TableFilters to keep sub-url path This change fixes url update of TableFilters (e.g. the builds page) where the location props doesn't take into account sub-url deployment. Change-Id: If09d37106b49a0e2c50ec81eeb101ed24bcbd2da --- web/src/containers/TableFilters.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/containers/TableFilters.jsx b/web/src/containers/TableFilters.jsx index a2a23dc630..9529911ec8 100644 --- a/web/src/containers/TableFilters.jsx +++ b/web/src/containers/TableFilters.jsx @@ -41,7 +41,7 @@ class TableFilters extends React.Component { } updateUrl (activeFilters) { - let path = this.props.location.pathname + let path = window.location.pathname if (activeFilters.length > 0) { path += '?' activeFilters.forEach((item, idx) => {