Skip to content

Commit

Permalink
Update DocsLibraryLink.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
RONAK-AI647 committed Dec 16, 2024
1 parent e7dcf6e commit b295d9e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/common/DocsLibraryLink.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>

<a :href="'/' + component.toLowerCase()">
<router-link :to="computedLink">
<code>{{ component }}</code>
</a>
</router-link>

</template>

Expand All @@ -17,6 +17,16 @@
required: true,
},
},
computed: {
computedLink() {
// Preserve query parameters in the link
return {
path: '/' + this.component.toLowerCase(),
query: { ...this.$route.query },
};
},
},
};
</script>

0 comments on commit b295d9e

Please sign in to comment.