Skip to content

Commit 6ff9aa8

Browse files
committed
Clear URL when pressing title
1 parent 1c14d71 commit 6ff9aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Topbar/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default function Topbar({ forwardedRef }: TopbarProps) {
3131

3232
const handleTitleClick = (event: MouseEvent<HTMLAnchorElement>) => {
3333
event.preventDefault()
34+
window.history.replaceState({}, '', window.location.pathname)
3435
scrollToTop()
3536
}
3637
const handleHamburgerClick = () => toggleSidebar()

0 commit comments

Comments
 (0)