Skip to content

Commit 9523df3

Browse files
committed
update
1 parent 93886f0 commit 9523df3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web/src/components/UserDropdown.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ const DropdownOption: React.FC<DropdownOptionProps> = ({
4343

4444
if (href) {
4545
return (
46-
<Link
46+
// Use a button instead of a link to avoid the default behavior of Next.js
47+
// Which caches existing contexts and leads to wonky behavior.
48+
<a
4749
href={href}
4850
target={openInNewTab ? "_blank" : undefined}
4951
rel={openInNewTab ? "noopener noreferrer" : undefined}
5052
>
5153
{content}
52-
</Link>
54+
</a>
5355
);
5456
} else {
5557
return <div onClick={onClick}>{content}</div>;

0 commit comments

Comments
 (0)