From 92eec274968a1014c936412e15e351b8f76a7256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Mon, 26 Feb 2024 17:03:45 +0100 Subject: [PATCH] fix: add relative link to PoiDetails return map button #168 --- components/PoisDetails/PoiDetails.vue | 2 +- locales/en-GB.ts | 2 +- locales/es-ES.ts | 2 +- pages/poi/[id]/details.vue | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/PoisDetails/PoiDetails.vue b/components/PoisDetails/PoiDetails.vue index 97311926a..11cb3ad2f 100644 --- a/components/PoisDetails/PoiDetails.vue +++ b/components/PoisDetails/PoiDetails.vue @@ -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}` } }, }, diff --git a/locales/en-GB.ts b/locales/en-GB.ts index 110c35a46..4cd4cb41d 100644 --- a/locales/en-GB.ts +++ b/locales/en-GB.ts @@ -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', }, diff --git a/locales/es-ES.ts b/locales/es-ES.ts index 160d2e7a8..d3e7f36c1 100644 --- a/locales/es-ES.ts +++ b/locales/es-ES.ts @@ -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', }, diff --git a/pages/poi/[id]/details.vue b/pages/poi/[id]/details.vue index b35fae220..230af78d6 100644 --- a/pages/poi/[id]/details.vue +++ b/pages/poi/[id]/details.vue @@ -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' @@ -33,7 +33,7 @@ import type { VidoConfig } from '~/utils/types-config' export default defineNuxtComponent({ components: { - Index, + PoiDetails, }, async setup(): Promise<{ @@ -162,7 +162,7 @@ export default defineNuxtComponent({