mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
Merge branch 'main' into feat/animejs
This commit is contained in:
commit
03f94ff446
2 changed files with 7 additions and 2 deletions
|
@ -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."
|
||||
],
|
||||
|
|
|
@ -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}/`))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue