Skip to content

Commit edf8573

Browse files
Alex KrawiecAlex Krawiec
authored andcommitted
Add security link in sdk nav
1 parent 8ea66a6 commit edf8573

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/dynamicNav.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export function DynamicNav({
162162
const {path} = serverContext();
163163
const isActive = path.join('/').indexOf(root) === 0;
164164
const linkPath = `/${path.join('/')}/`;
165+
console.log('path', path);
166+
console.log('linkpath', linkPath);
165167

166168
const header =
167169
parentNode && !noHeadingLink ? (
@@ -195,6 +197,13 @@ export function DynamicNav({
195197
showDepth={showDepth}
196198
path={linkPath}
197199
/>
200+
{/* see GH issue 12481 */}
201+
{linkPath != '/security-legal-pii/security/security-policy-reporting/' && <SidebarLink
202+
to={'/security-legal-pii/security/security-policy-reporting/'}
203+
title={'Set Up Security Policy Reporting'}
204+
key={'security-policy'}
205+
path={linkPath}
206+
/>}
198207
</ul>
199208
)}
200209
</li>

0 commit comments

Comments
 (0)