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 2b58f94 commit c2fc5f8Copy full SHA for c2fc5f8
src/runtime/server/plugin.ts
@@ -155,7 +155,7 @@ export default defineNitroPlugin(async (nitro) => {
155
const detector = useDetectors(event, detection)
156
const localeSegment = detector.route(event.path)
157
const pathLocale = (isSupportedLocale(localeSegment) && localeSegment) || undefined
158
- const path = (pathLocale && url.pathname.slice(pathLocale.length + 1)) || url.pathname
+ const path = (pathLocale && url.pathname.slice(pathLocale.length + 1)) ?? url.pathname
159
160
// attempt to only run i18n detection for nuxt pages and i18n server routes
161
if (!url.pathname.includes(__I18N_SERVER_ROUTE__) && !isExistingNuxtRoute(path)) {
0 commit comments