diff --git a/src/app/[...slug]/page.tsx b/src/app/[...slug]/page.tsx index ce3bad1..4c3a059 100644 --- a/src/app/[...slug]/page.tsx +++ b/src/app/[...slug]/page.tsx @@ -47,7 +47,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), content: content, insight: asInsight(response) } diff --git a/src/app/archives/page.tsx b/src/app/archives/page.tsx index 9a9d70b..b3ecb0e 100644 --- a/src/app/archives/page.tsx +++ b/src/app/archives/page.tsx @@ -30,7 +30,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), archives: archives } } diff --git a/src/app/articles/[...slug]/page.tsx b/src/app/articles/[...slug]/page.tsx index a22bceb..39afd3e 100644 --- a/src/app/articles/[...slug]/page.tsx +++ b/src/app/articles/[...slug]/page.tsx @@ -45,7 +45,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), content: content, insight: asInsight(response) } diff --git a/src/app/articles/[number]/page.tsx b/src/app/articles/[number]/page.tsx index 730c529..96e950c 100644 --- a/src/app/articles/[number]/page.tsx +++ b/src/app/articles/[number]/page.tsx @@ -36,7 +36,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), current: req.params.number, count: articlesResponseWithCount.count, articles: articles diff --git a/src/app/articles/page.tsx b/src/app/articles/page.tsx index f89c791..46ac0cd 100644 --- a/src/app/articles/page.tsx +++ b/src/app/articles/page.tsx @@ -32,7 +32,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), count: articlesResponseWithCount.count, articles: articles } diff --git a/src/app/page.tsx b/src/app/page.tsx index 99f3cdf..44f43ba 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -32,7 +32,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), articles: articles } } diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index fcae1a5..1e9852e 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -22,7 +22,7 @@ async function get(req: any) { if (req.searchParams['q'] === undefined) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), statusCode: req.res.statusCode, hits: 0, count: 0, @@ -36,7 +36,7 @@ async function get(req: any) { const result = await execute(req, qs); return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), statusCode: 422, // TODO hits: result.count, count: result.contents.length, @@ -47,7 +47,7 @@ async function get(req: any) { } else { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), statusCode: 422, // TODO hits: 0, count: 0, @@ -59,7 +59,7 @@ async function get(req: any) { } catch { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), statusCode: 422, // TODO hits: 0, count: 0, diff --git a/src/app/series/[slug]/page.tsx b/src/app/series/[slug]/page.tsx index e652419..b76a1b3 100644 --- a/src/app/series/[slug]/page.tsx +++ b/src/app/series/[slug]/page.tsx @@ -42,7 +42,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), seriresWithArticles: seriresWithArticles } } diff --git a/src/app/series/page.tsx b/src/app/series/page.tsx index a2a765e..d784ee3 100644 --- a/src/app/series/page.tsx +++ b/src/app/series/page.tsx @@ -32,7 +32,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), series: series } } diff --git a/src/app/status/page.tsx b/src/app/status/page.tsx index 21272e8..b6478f8 100644 --- a/src/app/status/page.tsx +++ b/src/app/status/page.tsx @@ -14,7 +14,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), statusCode: response.status } } diff --git a/src/app/tags/[...slug]/page.tsx b/src/app/tags/[...slug]/page.tsx index 8c5687e..54a11e3 100644 --- a/src/app/tags/[...slug]/page.tsx +++ b/src/app/tags/[...slug]/page.tsx @@ -38,7 +38,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), tagName: tagName, currentPage: currentPage, count: articlesResponseWithCount.count, diff --git a/src/app/tags/page.tsx b/src/app/tags/page.tsx index 6c5cbac..2439def 100644 --- a/src/app/tags/page.tsx +++ b/src/app/tags/page.tsx @@ -21,7 +21,7 @@ async function get(req: any) { return { props: { - slug: req.params.slug, + slug: req.params.slug.join('/'), tags: await response.json() as Array } }