diff --git a/components/landing-page/filter-all/audio-filter-card.tsx b/components/landing-page/filter-all/audio-filter-card.tsx index 2737b197..1469a140 100644 --- a/components/landing-page/filter-all/audio-filter-card.tsx +++ b/components/landing-page/filter-all/audio-filter-card.tsx @@ -243,7 +243,8 @@ export default function FilterAudioComponent(props: { {newContent?.map((audio: any) => ( // router.push(prefixPath + `/audio/detail/${audio?.slug}`) // } diff --git a/components/landing-page/filter-all/document-filter-card.tsx b/components/landing-page/filter-all/document-filter-card.tsx index f15c8c5a..7970851f 100644 --- a/components/landing-page/filter-all/document-filter-card.tsx +++ b/components/landing-page/filter-all/document-filter-card.tsx @@ -214,7 +214,8 @@ export default function FilterDocumentComponent(props: { {newContent?.map((text: any) => ( // router.push(prefixPath + `/document/detail/${text?.slug}`) // } diff --git a/components/landing-page/filter-all/image-filter-card.tsx b/components/landing-page/filter-all/image-filter-card.tsx index edc07601..de5e1c15 100644 --- a/components/landing-page/filter-all/image-filter-card.tsx +++ b/components/landing-page/filter-all/image-filter-card.tsx @@ -157,17 +157,11 @@ export default function FilterImageComponent(props: { }${endDateString ? `&endDate=${endDateString}` : ""}`; const href = `${basePath}/image/${fullQuery}`; - // let prefixPath = poldaName - // ? `/polda/${poldaName}` - // : satkerName - // ? `/satker/${satkerName}` - // : ""; - let prefixPath = poldaName - ? `/polda/${poldaName}/image/detail` + ? `/polda/${poldaName}` : satkerName - ? `/satker/${satkerName}/image/detail` - : `/image/detail`; + ? `/satker/${satkerName}` + : ""; return newContent?.length > 0 ? (
diff --git a/components/landing-page/filter-all/video-filter-card.tsx b/components/landing-page/filter-all/video-filter-card.tsx index 0c748eb6..81e336e0 100644 --- a/components/landing-page/filter-all/video-filter-card.tsx +++ b/components/landing-page/filter-all/video-filter-card.tsx @@ -161,7 +161,8 @@ export default function FilterVideoComponent(props: { {newContent?.map((video: any) => ( // router.push(prefixPath + `/video/detail/${video?.slug}`) // }