diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 88406b709..328b9c412 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -288,10 +288,14 @@ export function getNodeDetails(getState, dispatch) { if (obj && topologyUrlsById.has(obj.topologyId)) { const topologyUrl = topologyUrlsById.get(obj.topologyId); let urlComponents = [getApiPath(), topologyUrl, '/', encodeURIComponent(obj.id)]; - if (currentTopologyId === obj.topologyId) { - // Only forward filters for nodes in the current topology - const optionsQuery = buildUrlQuery(activeTopologyOptionsSelector(state), state); - urlComponents = urlComponents.concat(['?', optionsQuery]); + + // Only forward filters for nodes in the current topology. + const topologyOptions = currentTopologyId === obj.topologyId + ? activeTopologyOptionsSelector(state) : makeMap(); + + const query = buildUrlQuery(topologyOptions, state); + if (query) { + urlComponents = urlComponents.concat(['?', query]); } const url = urlComponents.join('');