Update redirect logic in whatsnew.astro and add version to whats-new.json

This commit is contained in:
mr. m 2025-05-04 01:48:22 +02:00
parent 082319064a
commit 8570e9d93b
No known key found for this signature in database
GPG key ID: 419302196C23B258
3 changed files with 17 additions and 4 deletions

View file

@ -14,9 +14,8 @@ import whatsNewVideo from '../assets/whats-new.mp4'
const latestVersion = releaseNotes[0]
// Just redirect to the release notes if we are in a patch version
if (latestVersion.version.split('.').length > 2) {
const url = `/release-notes#${latestVersion.version}`
return Astro.redirect(url)
if (latestVersion.version.split('.').length > 2 && whatsNewText[1] !== latestVersion.version) {
return Astro.redirect(`/release-notes#${latestVersion.version}`)
}
---

View file

@ -2684,5 +2684,19 @@
],
"workflowId": 14803913371,
"date": "03/05/2025"
},
{
"version": "1.12.1b",
"image": false,
"extra": "This is just a small update to fix some bugs with the previous version. Please checkout release notes for 1.12b for more details.",
"fixes": [
"Fixed sidbar in collapsed, compact mode being too small.",
"Fixed jitter on compact mode on windows.",
"Fixed duplicate newtabs opening when having 'replace-newtab' disabled.",
"Fixed custom colors not being able to be removed."
],
"features": [],
"workflowId": 14812026286,
"date": "04/05/2025"
}
]

View file

@ -1 +1 @@
["This update includes some cool new features and fixes! Starting with comunity made Mods improvements and animations, and a new way to store your essentials for workspaces in different containers!"]
["This update includes some cool new features and fixes! Starting with comunity made Mods improvements and animations, and a new way to store your essentials for workspaces in different containers!", "1.12.1b"]