diff --git a/components/form/login.tsx b/components/form/login.tsx index 9e35c43..77284a5 100644 --- a/components/form/login.tsx +++ b/components/form/login.tsx @@ -234,7 +234,7 @@ export default function Login() { const resActivity = await saveActivity( { activityTypeId: 1, - url: "https://new-humas.polri.go.id/auth", + url: "https://humas.polri.go.id/auth", userId: profile?.data?.data?.id, }, accessData?.id_token diff --git a/components/main/detail/comment.tsx b/components/main/detail/comment.tsx index 408479b..175c589 100644 --- a/components/main/detail/comment.tsx +++ b/components/main/detail/comment.tsx @@ -112,7 +112,7 @@ export default function Comment(props: { id: string | null }) { } const req: any = { activityTypeId: 5, - url: "https://new-humas.polri.go.id/" + pathname, + url: "https://humas.polri.go.id/" + pathname, articleId: Number(id), }; @@ -172,7 +172,7 @@ export default function Comment(props: { id: string | null }) { } const req: any = { activityTypeId: 5, - url: "https://new-humas.polri.go.id/" + pathname, + url: "https://humas.polri.go.id/" + pathname, articleId: Number(id), userId: Number(userId), }; diff --git a/components/main/detail/e-magazine-detail.tsx b/components/main/detail/e-magazine-detail.tsx index 3ece1ea..13d297a 100644 --- a/components/main/detail/e-magazine-detail.tsx +++ b/components/main/detail/e-magazine-detail.tsx @@ -36,7 +36,7 @@ export default function EMagazineDetail() { const doDownload = async (fileName: string, title: string): Promise => { try { const response = await fetch( - `https://new-humas.polri.go.id/magazine-files/viewer/${fileName}` + `https://humas.polri.go.id/magazine-files/viewer/${fileName}` ); if (!response.ok) { diff --git a/components/main/detail/new-detail.tsx b/components/main/detail/new-detail.tsx index bdad1be..dd27313 100644 --- a/components/main/detail/new-detail.tsx +++ b/components/main/detail/new-detail.tsx @@ -39,7 +39,7 @@ export default function NewsDetailPage(props: { datas: any }) { const sendActivity = async () => { let req: any = { activityTypeId: 2, - url: "https://new-humas.polri.go.id" + pathname, + url: "https://humas.polri.go.id" + pathname, articleId: Number(id?.split("-")[0]), }; if (uid) { diff --git a/components/page/detail-news.tsx b/components/page/detail-news.tsx index 32cae59..8803b70 100644 --- a/components/page/detail-news.tsx +++ b/components/page/detail-news.tsx @@ -49,11 +49,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) { const handleShare = async (platform: string) => { let shareLink = ""; - const urls = "https://new-humas.polri.go.id/" + pathname; + const urls = "https://humas.polri.go.id/" + pathname; let req: any = { activityTypeId: 3, - url: "https://new-humas.polri.go.id/" + pathname, + url: "https://humas.polri.go.id/" + pathname, articleId: Number(id?.split("-")[0]), }; if (uid) { diff --git a/public/sw.js b/public/sw.js index d803b7c..cfed3fe 100644 --- a/public/sw.js +++ b/public/sw.js @@ -125,5 +125,5 @@ self.addEventListener("push", function (event) { self.addEventListener("notificationclick", function (event) { console.log("Notification click received."); event.notification.close(); - event.waitUntil(clients.openWindow("")); + event.waitUntil(clients.openWindow("")); });