From 7bf69eff04139dbec46bcaf3251d97da4c9a49fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Emanuel=20Surdi?= Date: Tue, 4 Mar 2025 16:34:41 +0100 Subject: [PATCH] fix(browser): Call original function on early return from patched history API --- packages/browser-utils/src/instrument/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser-utils/src/instrument/history.ts b/packages/browser-utils/src/instrument/history.ts index ad5ecb75f2ed..8494fca3076e 100644 --- a/packages/browser-utils/src/instrument/history.ts +++ b/packages/browser-utils/src/instrument/history.ts @@ -51,7 +51,7 @@ function instrumentHistory(): void { lastHref = to; if (from === to) { - return; + return originalHistoryFunction.apply(this, args); } const handlerData = { from, to } satisfies HandlerDataHistory;