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
This commit is contained in:
Tristan Cacqueray 2018-10-11 02:46:24 +00:00
parent be64ed2777
commit c119c9a678
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {