Skip to content

Commit

Permalink
fix: add relative link to PoiDetails return map button #168
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Feb 26, 2024
1 parent 327e520 commit 92eec27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/PoisDetails/PoiDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default defineNuxtComponent({
const categoryIds
= `${this.poi.properties.metadata.category_ids?.join(',')}/`
const id = this.poi.properties.metadata.id
return `${this.settings.themes[0].site_url.fr}${categoryIds}${id}`
return `/${categoryIds}${id}`
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion locales/en-GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default defineI18nLocale(() => {
unactivateExplore: 'Deactivate exploration of the surroundings',
activateExplore: 'Explore nearby points of interest',
zoom: 'Zoom',
backToMap: 'Volver al mapa',
backToMap: 'Go to map',
thumbnail: 'Thumbnail',
image: 'Illustration',
},
Expand Down
2 changes: 1 addition & 1 deletion locales/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default defineI18nLocale(() => {
unactivateExplore: 'Desactivar la exploración de las cercanías',
activateExplore: 'Explora los puntos de interés cercanos',
zoom: 'Acercarse',
backToMap: 'Go to map',
backToMap: 'Volver al mapa',
thumbnail: 'Miniatura',
image: 'Ilustración',
},
Expand Down
6 changes: 3 additions & 3 deletions pages/poi/[id]/details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
useRoute,
} from '#app'
import { definePageMeta } from '#imports'
import Index from '~/components/PoisDetails/PoiDetails.vue'
import PoiDetails from '~/components/PoisDetails/PoiDetails.vue'
import type { ContentEntry } from '~/lib/apiContent'
import { getContents } from '~/lib/apiContent'
import type { ApiPoiDeps } from '~/lib/apiPoiDeps'
Expand All @@ -33,7 +33,7 @@ import type { VidoConfig } from '~/utils/types-config'
export default defineNuxtComponent({
components: {
Index,
PoiDetails,
},
async setup(): Promise<{
Expand Down Expand Up @@ -162,7 +162,7 @@ export default defineNuxtComponent({
</script>

<template>
<Index
<PoiDetails
v-if="settings"
:settings="settings"
:nav-menu-entries="contents"
Expand Down

0 comments on commit 92eec27

Please sign in to comment.