🐛 Add backward compatibility

This commit is contained in:
LittleSheep 2025-03-20 21:32:52 +08:00
parent ae31e72447
commit 1739cd92b7
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
export default defineNuxtRouteMiddleware((to) => {
// No further supported path prefix localization
if (to.path.startsWith("/zh-CN")) {
return navigateTo(to.fullPath.replace("/zh-CN", ""))
}
})