Skip to content

Commit cde608d

Browse files
author
cp-contact-c
committed
Fix : seo issue of link
1 parent 57582bb commit cde608d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

nuxt-frontend/components/partials/NewHeader.vue

+14-14
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,20 @@
153153
class="my-2 ml-1 py-2 lg:ml-0"
154154
>
155155
<nuxt-link
156-
:to="navbar.url == '/contributions' ? '' : navbar.url"
157-
@click.native="$mixpanel.track(navbar.event)"
158-
class="flex gap-2 group relative mr-5 w-fit sm:mr-[30px] lg:mr-5 cursor-pointer"
159-
:class="[
160-
isActiveRoute(navbar.name) ? 'router-link-exact-active' : '',
161-
navbar.className
162-
? navbar.className
163-
: ' main-menu after:absolute after:bottom-0 after:left-0 after:top-[27px] after:h-[3px] after:w-full after:origin-bottom-left after:scale-x-0 after:from-[#f2709c] after:to-[#ff9472] after:duration-300 after:bg-gradient-[90deg] hover:from-[#ff9472] hover:to-[#f2709c] hover:bg-clip-text hover:text-transparent hover:bg-gradient-[270.11deg] hover:after:origin-bottom-left hover:after:scale-x-100',
164-
]"
165-
@click="
166-
navbar.name == 'Contribution'
167-
? (showContributionMenu = !showContributionMenu)
168-
: ''
169-
"
156+
:to="navbar.url && navbar.url !== '/contributions' ? navbar.url : '/'"
157+
@click.native="$mixpanel.track(navbar.event)"
158+
class="flex gap-2 group relative mr-5 w-fit sm:mr-[30px] lg:mr-5 cursor-pointer"
159+
:class="[
160+
isActiveRoute(navbar.name) ? 'router-link-exact-active' : '',
161+
navbar.className
162+
? navbar.className
163+
: ' main-menu after:absolute after:bottom-0 after:left-0 after:top-[27px] after:h-[3px] after:w-full after:origin-bottom-left after:scale-x-0 after:from-[#f2709c] after:to-[#ff9472] after:duration-300 after:bg-gradient-[90deg] hover:from-[#ff9472] hover:to-[#f2709c] hover:bg-clip-text hover:text-transparent hover:bg-gradient-[270.11deg] hover:after:origin-bottom-left hover:after:scale-x-100',
164+
]"
165+
@click="
166+
navbar.name == 'Contribution'
167+
? (showContributionMenu = !showContributionMenu)
168+
: ''
169+
"
170170
>
171171
<span>{{ navbar.name }}</span>
172172
<span

0 commit comments

Comments
 (0)