From ed82bf70f52a4c224f6ec4fcf545b2eb920056aa Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 20 Nov 2020 14:02:11 -0800 Subject: [PATCH] hotfix: customUrl effect is preventing redirects, add check (#13742) --- explorer/src/providers/cluster.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/providers/cluster.tsx b/explorer/src/providers/cluster.tsx index a2f7e44a75..c333b43db3 100644 --- a/explorer/src/providers/cluster.tsx +++ b/explorer/src/providers/cluster.tsx @@ -143,7 +143,7 @@ export function ClusterProvider({ children }: ClusterProviderProps) { // Remove customUrl param if dev setting is disabled React.useEffect(() => { - if (!enableCustomUrl) { + if (!enableCustomUrl && query.has("customUrl")) { query.delete("customUrl"); history.push({ ...location, search: query.toString() }); }