From 592397194678648cfa733352cef34d3af6baa264 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Thu, 1 Oct 2026 10:34:51 +0000 Subject: [PATCH] Embed guide: the Nuxt form of the language listener, and carrying the open tab across a locale route --- plugin-designs/doxa-maps-spa/EMBED.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin-designs/doxa-maps-spa/EMBED.md b/plugin-designs/doxa-maps-spa/EMBED.md index 0c396a0b1..243b00008 100644 --- a/plugin-designs/doxa-maps-spa/EMBED.md +++ b/plugin-designs/doxa-maps-spa/EMBED.md @@ -97,6 +97,10 @@ a cancelable `doxa-language-request` event (it bubbles and crosses shadow roots) }) ``` + On Nuxt with @nuxtjs/i18n that call is `navigateTo(switchLocalePath(e.detail.language))`; + switchLocalePath already keeps the query and hash. If a new locale route re-mounts the page, carry the + open tab across: keep the id from `tab-change` (`e.detail[0].id`) in `?tab=`, which the gallery reads. + - **You do nothing:** the gallery switches itself. The reader's pick then holds even over a `language` you passed, until you change that attribute again. The gallery never writes your page's URL.