diff --git a/src/renderer/navigation/history.ts b/src/renderer/navigation/history.ts index cfa11cb2f6..f12b89f365 100644 --- a/src/renderer/navigation/history.ts +++ b/src/renderer/navigation/history.ts @@ -1,15 +1,14 @@ import { ipcRenderer } from "electron"; import { createBrowserHistory, createMemoryHistory } from "history"; import { createObservableHistory } from "mobx-observable-history"; -import { getHostedClusterId } from "../../common/cluster-store"; import logger from "../../main/logger"; export const history = ipcRenderer ? createBrowserHistory() : createMemoryHistory(); export const navigation = createObservableHistory(history); navigation.listen((location, action) => { - const clusterId = getHostedClusterId(); - const frame = clusterId ?? "root"; + const isClusterView = !process.isMainFrame; + const domain = global.location.href; - logger.debug(`[NAVIGATION]: ${action}`, { location, frame }); + logger.debug(`[NAVIGATION]: ${action}`, { isClusterView, domain, location }); });