Merge branch 'main' into feat/animejs

This commit is contained in:
Shintaro Jokagi 2025-06-06 13:29:46 +12:00 committed by GitHub
commit 03f94ff446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -2772,8 +2772,8 @@
"version": "1.12.10b",
"extra": "",
"fixes": [
"An issue with migration that led to unexpected behavior when starting up zen, leading to some services being unavailable.",
"Unloading pinned tabs using the wrong favicon instead of the cached one.",
"An issue with migration that led to unexpected behavior on startup, leading to some services being unavailable.",
"Unloaded pinned tabs using the wrong favicon instead of the cached one.",
"Gradients not showing when restoring multiple windows at once",
"Restoring previously closed pinned tabs being on the wrong container."
],

View file

@ -16,6 +16,11 @@ export type Locale = (typeof locales)[number]
export const getPath =
(locale?: Locale): ((arg0: string) => string) =>
(path: string) => {
// Return external URLs unchanged
if (path.startsWith('http://') || path.startsWith('https://')) {
return path
}
// Check if path already contains any locale prefix
const existingLocale = locales.find(l => path.startsWith(`/${l}/`))