Skip to content

Commit

Permalink
Debug route
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane MEAUDRE committed Mar 21, 2024
1 parent 749d4eb commit 18fba0b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion front/components/Items/ConstellationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
v-bind="props"
>
<NuxtLink
:to="{name: 'constellation-constellationId', params: { constellationId: constellation.id.toLowerCase(), urlName: constellation.urlName } }"
:to="{name: 'constellation-id-urlName', params: { id: constellation.id.toLowerCase(), urlName: constellation.urlName } }"
>
<v-img
:src="`../assets/images/constellations/cover/${constellation.cover}`"
Expand Down
6 changes: 3 additions & 3 deletions front/components/Items/DsoCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
v-bind="props"
>
<NuxtLink
:to="{ name: 'dso-id', params: { id: dso.id, urlName: dso.urlName } }"
:to="{ name: 'dso-id-urlName', params: { id: dso.id, urlName: dso.urlName } }"
:title="t('dso.link', {'dso': title})"
>
<v-img
Expand Down Expand Up @@ -81,9 +81,9 @@
<span class="subheading me-2">
<NuxtLink
:to="{
name: 'constellation-constellationId',
name: 'constellation-id-urlName',
params: {
constellationId: dso.constellation.id.toLowerCase(),
id: dso.constellation.id.toLowerCase(),
urlName: dso.constellation.alt.toLowerCase()
}
}"
Expand Down
4 changes: 2 additions & 2 deletions front/components/Items/SearchListCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getParams = (item: SearchDsoItem | SearchConstellationItem) => {
color="transparent"
@click="clickClear"
>
<NuxtLink :to="{ name: 'dso', params: getParams(item) }">
<NuxtLink :to="{ name: 'dso-id-urlName', params: getParams(item) }">
<v-list-item-title>{{ item.fullNameAlt }}</v-list-item-title>
<v-list-item-subtitle>{{ item.typeLabel }}</v-list-item-subtitle>
</NuxtLink>
Expand All @@ -63,7 +63,7 @@ const getParams = (item: SearchDsoItem | SearchConstellationItem) => {
color="transparent"
@click="clickClear"
>
<NuxtLink :to="{ name: 'constellation', params: { constellationId: item.id, urlName: item.urlName } }">
<NuxtLink :to="{ name: 'constellation-id-urlName', params: { id: item.id, urlName: item.urlName } }">
<v-list-item-title /> {{ item.alt }}
</NuxtLink>
</v-list-item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script setup lang="ts">
import {definePageMeta} from "#imports";
const route = useRoute()
const { id, urlName } = route.params;
definePageMeta({
layout: 'page'
})
const route = useRoute()
const { id, urlName } = route.params;
</script>

<template>
Expand Down

0 comments on commit 18fba0b

Please sign in to comment.