From 71f0b3b52e4e638a8264d88b689ca013b6735387 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Fri, 15 Aug 2025 14:29:37 +0700 Subject: [PATCH] fix: link in broadcast --- .../contributor/agenda-setting/event-modal.tsx | 6 +++--- .../form/broadcast/content-blast--detail-form.tsx | 13 ++++++++++++- components/form/broadcast/content-blast-form.tsx | 1 + components/landing-page/hero-new.tsx | 4 ++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/[locale]/(protected)/contributor/agenda-setting/event-modal.tsx b/app/[locale]/(protected)/contributor/agenda-setting/event-modal.tsx index 4a187985..9840e9b4 100644 --- a/app/[locale]/(protected)/contributor/agenda-setting/event-modal.tsx +++ b/app/[locale]/(protected)/contributor/agenda-setting/event-modal.tsx @@ -788,7 +788,7 @@ const EventModal = ({
- {roleId === 1 && ( +
- )} + {roleId === 1 && (
toggleWilayah("polres")} /> {wilayahPublish.polres && ( { + if ( + updatedUrl.includes(domain) && + !updatedUrl.includes(`${domain}/in`) + ) { + updatedUrl = updatedUrl.replace(domain, `${domain}/in`); + } + }); if (detailData && detailData.id === Number(id)) { setDetail({ id: detailData.id, @@ -41,7 +52,7 @@ export default function DetailContentBlast() { subject: detailData.subject, sendTime: detailData.sendTime, thumbnail: detailData.thumbnail, - contentUrl: detailData.contentUrl, + contentUrl: updatedUrl, }); } else { setNotFound(true); diff --git a/components/form/broadcast/content-blast-form.tsx b/components/form/broadcast/content-blast-form.tsx index d7cac489..402cc9c7 100644 --- a/components/form/broadcast/content-blast-form.tsx +++ b/components/form/broadcast/content-blast-form.tsx @@ -221,6 +221,7 @@ export default function ContentBlast(props: { type: string }) { Subject