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