Skip to content

Commit 37dd1f3

Browse files
authored
chore: relink Kurse & Webinare
1 parent 3312221 commit 37dd1f3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/navigation/AltTopNav.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ const AltTopNav: FC<IAltTopNavProps> = ({ path, hamburgerIconProps }) => {
162162
color: 'brand.500'
163163
}}
164164
>
165-
<LinkOverlay href="/docs">Kurse & Webinare</LinkOverlay>
165+
<LinkOverlay
166+
href={path === '/docs/workshops/' ? undefined : '/docs/workshops/'}
167+
>
168+
Kurse & Webinare
169+
</LinkOverlay>
166170
</LinkBox>
167171
<LinkBox
168172
gridArea="portfolio"
@@ -339,14 +343,8 @@ const AltTopNav: FC<IAltTopNavProps> = ({ path, hamburgerIconProps }) => {
339343
ml={1}
340344
filter="drop-shadow(1px 2px 2px rgb(0 0 0 / 0.1))"
341345
onClick={() => {
342-
// if not on the homepage, redirect to the homepage first
343-
if (path !== '/') {
344-
window.location.href = '/';
345-
}
346-
347-
const element = document.getElementById('meine_beratung');
348-
if (element) {
349-
element.scrollIntoView({ behavior: 'smooth' });
346+
if (path !== '/docs/workshops/') {
347+
window.location.href = '/docs/workshops/';
350348
}
351349
}}
352350
fontSize="sm"

0 commit comments

Comments
 (0)