diff --git a/src/runtime/composables/useDrupalCe/index.ts b/src/runtime/composables/useDrupalCe/index.ts index cdba4aa6..65937d18 100644 --- a/src/runtime/composables/useDrupalCe/index.ts +++ b/src/runtime/composables/useDrupalCe/index.ts @@ -129,7 +129,12 @@ export const useDrupalCe = () => { // API path with localization menuPath.value = nuxtApp.$localePath('/' + baseMenuPath) watch(nuxtApp.$i18n.locale, () => { - menuPath.value = nuxtApp.$localePath('/' + baseMenuPath) + let menuLocalePath = nuxtApp.$localePath('/' + baseMenuPath) + // menuPath should not start with a slash. + if (config.serverApiProxy && menuLocalePath.startsWith('/')) { + menuLocalePath = menuLocalePath.substring(1) + } + menuPath.value = menuLocalePath }) }