diff options
| author | Factiven <[email protected]> | 2023-10-24 22:56:46 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-10-24 22:56:46 +0700 |
| commit | b746909539990c89e4569827b1c32e0a9782e8d2 (patch) | |
| tree | 865c4e2dbc92590d98166e865e266c4239df8d93 | |
| parent | Update v4.2.2 (diff) | |
| download | moopa-b746909539990c89e4569827b1c32e0a9782e8d2.tar.xz moopa-b746909539990c89e4569827b1c32e0a9782e8d2.zip | |
Update [...param].js
| -rw-r--r-- | pages/en/search/[...param].js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pages/en/search/[...param].js b/pages/en/search/[...param].js index 2cb609f..c1fd94c 100644 --- a/pages/en/search/[...param].js +++ b/pages/en/search/[...param].js @@ -33,9 +33,7 @@ export async function getServerSideProps(context) { const { search, format, genres, season, year } = context.query; - let getFormat; - let getSeason; - let getYear; + let getFormat, getSeason, getYear; let getGenres = []; if (genres) { @@ -400,9 +398,9 @@ export default function Card({ <Link href={ anime.format === "MANGA" || anime.format === "NOVEL" - ? `/en/manga/${ - anilistId ? anilistId : "" - }${`/${anime.id}`}` + ? `/en/manga/${anilistId ? `${anilistId}/` : ""}${ + anime.id + }` : `/en/anime/${anime.id}` } title={anime.title.userPreferred} @@ -423,9 +421,9 @@ export default function Card({ <Link href={ anime.format === "MANGA" || anime.format === "NOVEL" - ? `/en/manga/${ - anilistId ? anilistId : "" - }${`/${anime.id}`}` + ? `/en/manga/${anilistId ? `${anilistId}/` : ""}${ + anime.id + }` : `/en/anime/${anime.id}` } title={anime.title.userPreferred} |