Skip to content

Commit c69270c

Browse files
authored
Merge pull request #33384 from github/repo-sync
Repo sync
2 parents 106f6d1 + 9759790 commit c69270c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

content/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Private vulnerability reporting makes it easy for security researchers to report
3434
For security researchers, the benefits of using private vulnerability reporting are:
3535
- Less frustration, and less time spent trying to figure out how to contact the maintainer.
3636
- A smoother process for disclosing and discussing vulnerability details.
37-
- The opportunity to discuss vulnerability details privately with repository maintainer.
37+
- The opportunity to discuss vulnerability details privately with the repository maintainer.
3838

3939
{% data reusables.security-advisory.private-vulnerability-reporting-disabled %}
4040

src/landings/components/SidebarProduct.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Link from 'next/link'
12
import { useRouter } from 'next/router'
23
import { useEffect, useState } from 'react'
34
import { NavList } from '@primer/react'
@@ -75,20 +76,16 @@ export const SidebarProduct = () => {
7576
}
7677

7778
function NavListItem({ childPage }: { childPage: ProductTreeNode }) {
78-
const { push, asPath, locale } = useRouter()
79+
const { asPath, locale } = useRouter()
7980
const routePath = `/${locale}${asPath.split('?')[0].split('#')[0]}`
8081
const isActive = routePath === childPage.href
8182

8283
return (
8384
<NavList.Item
8485
defaultOpen={childPage.childPages.length > 0 && routePath.includes(childPage.href)}
8586
href={childPage.href}
87+
as={Link}
8688
aria-current={isActive ? 'page' : false}
87-
onClick={(event) => {
88-
// XXX TODO: If the `childPage.href` is an external link, don't try to do anything fancy here.
89-
event.preventDefault()
90-
push(childPage.href)
91-
}}
9289
>
9390
{childPage.title}
9491
{childPage.childPages.length > 0 && (

0 commit comments

Comments
 (0)