Skip to content

Commit 970c241

Browse files
authored
fix faq issues (#4501)
1 parent 1010dec commit 970c241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/homepage/src/utils/useAccordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const useAccordion = () => {
2020
}
2121
const toggleClasses = e => {
2222
if (e.target.localName !== 'h2') return;
23-
history.pushState({}, '', 'faq/#' + e.target.id);
23+
history.replaceState({}, '', '#' + e.target.id);
2424
history.scrollRestoration = 'manual';
2525
const parent = e.target.parentNode;
2626

0 commit comments

Comments
 (0)