Commit 5f957167 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

fix/search

parent dce3939d
......@@ -6,7 +6,7 @@ import CardNews from "@/components/base/card-news";
import { Pagination } from "@components/base/pagination";
import Image from "next/image";
import { useGetNews } from "@api/endpoints/news";
import { GetNewsResponseType } from "@api/types/NewsPage.type";
import { GetNewsResponseType } from "@api/types/news";
import { Spinner } from "@components/ui/spinner";
import { useSearchParams } from 'next/navigation'
......@@ -50,7 +50,7 @@ function SearchContent() {
<CardNews
key={news.id}
news={news}
link={`${news.category}/${news.id}`}
link={`${news.page_config.static_link}/${news.id}`}
/>
))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment