fix(recipes): coerce season month to string for resolve()

resolve() requires string params; season[0] is a number, which made
param_value.startsWith blow up on /[recipeLang]/[name] pages.
This commit is contained in:
2026-05-01 14:20:24 +02:00
parent 79f4dbb101
commit dbce9629a5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.57.0",
"version": "1.57.1",
"private": true,
"type": "module",
"scripts": {
@@ -322,7 +322,7 @@ h2{
<div class=tags>
<h2>{labels.season}</h2>
{#each season_iv as season}
<a class="g-tag" href={resolve('/[recipeLang=recipeLang]/season/[month]', { recipeLang: data.recipeLang, month: season[0] })}>
<a class="g-tag" href={resolve('/[recipeLang=recipeLang]/season/[month]', { recipeLang: data.recipeLang, month: String(season[0]) })}>
{#if season[0]}
{months[season[0] - 1]}
{/if}