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:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homepage",
|
"name": "homepage",
|
||||||
"version": "1.57.0",
|
"version": "1.57.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ h2{
|
|||||||
<div class=tags>
|
<div class=tags>
|
||||||
<h2>{labels.season}</h2>
|
<h2>{labels.season}</h2>
|
||||||
{#each season_iv as season}
|
{#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]}
|
{#if season[0]}
|
||||||
{months[season[0] - 1]}
|
{months[season[0] - 1]}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user