We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b668ee commit 970475aCopy full SHA for 970475a
src/runtime/composables/useDrupalCe/index.ts
@@ -129,7 +129,12 @@ export const useDrupalCe = () => {
129
// API path with localization
130
menuPath.value = nuxtApp.$localePath('/' + baseMenuPath)
131
watch(nuxtApp.$i18n.locale, () => {
132
- menuPath.value = nuxtApp.$localePath('/' + baseMenuPath)
+ let menuLocalePath = nuxtApp.$localePath('/' + baseMenuPath)
133
+ // menuPath should not start with a slash.
134
+ if (config.serverApiProxy && menuLocalePath.startsWith('/')) {
135
+ menuLocalePath = menuLocalePath.substring(1)
136
+ }
137
+ menuPath.value = menuLocalePath
138
})
139
}
140
0 commit comments