Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Use router-link instead of a href for some links in the footer #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/components/core/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,20 @@
v-for="link in links"
:key="link.name"
>
<a
:href="link.Link"
class="tertiary--text footer-links">{{ link.name }}</a>
<template
v-if="link.route"
>
<router-link
to="link.Link">
{{ link.name }}
</router-link>
</template>
<template
v-else>
<a
:href="link.Link"
class="tertiary--text footer-links">{{ link.name }}</a>
</template>
</span>
</div>
<v-spacer/>
Expand All @@ -33,7 +44,7 @@
export default {
data: () => ({
links: [
{ name: 'Home', Link: '/dashboard' },
{ name: 'Home', Link: '/dashboard', route: true },
{ name: 'Creative Tim', Link: 'https://www.creative-tim.com' },
{ name: 'About Us', Link: 'https://creative-tim.com/presentation' },
{ name: 'Blog', Link: 'https://blog.creative-tim.com' }
Expand Down