Skip to content

Commit c63494b

Browse files
committedMar 21, 2025·
bytt tilbake til pushState
1 parent 073c1db commit c63494b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎xp-archive/client/content/Content.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Content = () => {
5151
setSelectedVersion(versionId);
5252
}
5353
const newUrl = `${xpArchiveConfig.basePath}/${selectedContentId}/${selectedLocale}/${versionId}`;
54-
window.history.replaceState({}, '', newUrl);
54+
window.history.pushState({}, '', newUrl);
5555
}
5656
}, [data, selectedContentId, selectedLocale, selectedVersion]);
5757

0 commit comments

Comments
 (0)
Please sign in to comment.