Skip to content

Commit 97155e9

Browse files
authored
fix(browser): Call original function on early return from patched history API (#15576)
In #14696 an early `return` was introduced that alters the default behavior of the underlying history API that is being patched. Instead of just returning, the original/underlying function should be called to keep the default behavior.
1 parent bd6aceb commit 97155e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser-utils/src/instrument/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function instrumentHistory(): void {
5151
lastHref = to;
5252

5353
if (from === to) {
54-
return;
54+
return originalHistoryFunction.apply(this, args);
5555
}
5656

5757
const handlerData = { from, to } satisfies HandlerDataHistory;

0 commit comments

Comments
 (0)