mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +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",
|
"version": "1.12.10b",
|
||||||
"extra": "",
|
"extra": "",
|
||||||
"fixes": [
|
"fixes": [
|
||||||
"An issue with migration that led to unexpected behavior when starting up zen, leading to some services being unavailable.",
|
"An issue with migration that led to unexpected behavior on startup, leading to some services being unavailable.",
|
||||||
"Unloading pinned tabs using the wrong favicon instead of the cached one.",
|
"Unloaded pinned tabs using the wrong favicon instead of the cached one.",
|
||||||
"Gradients not showing when restoring multiple windows at once",
|
"Gradients not showing when restoring multiple windows at once",
|
||||||
"Restoring previously closed pinned tabs being on the wrong container."
|
"Restoring previously closed pinned tabs being on the wrong container."
|
||||||
],
|
],
|
||||||
|
|
|
@ -16,6 +16,11 @@ export type Locale = (typeof locales)[number]
|
||||||
export const getPath =
|
export const getPath =
|
||||||
(locale?: Locale): ((arg0: string) => string) =>
|
(locale?: Locale): ((arg0: string) => string) =>
|
||||||
(path: string) => {
|
(path: string) => {
|
||||||
|
// Return external URLs unchanged
|
||||||
|
if (path.startsWith('http://') || path.startsWith('https://')) {
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
|
||||||
// Check if path already contains any locale prefix
|
// Check if path already contains any locale prefix
|
||||||
const existingLocale = locales.find(l => path.startsWith(`/${l}/`))
|
const existingLocale = locales.find(l => path.startsWith(`/${l}/`))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue