From 987e5fcbfd6247f3548d05e9c485b2abe07ec778 Mon Sep 17 00:00:00 2001 From: bicochan Date: Thu, 13 Aug 2026 17:20:30 +0900 Subject: [PATCH] =?UTF-8?q?[as]=20chore:=20=EC=95=8C=EB=A6=BC=EC=9D=B4?= =?UTF-8?q?=EB=A0=A5=20notiUrl=20=EB=A6=AC=EC=A1=B8=EB=B2=84=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/nti-hstry/ui/nti-hstry-list.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/as/src/pages/nti-hstry/ui/nti-hstry-list.tsx b/apps/as/src/pages/nti-hstry/ui/nti-hstry-list.tsx index 83aadc91c..7eaf63f11 100644 --- a/apps/as/src/pages/nti-hstry/ui/nti-hstry-list.tsx +++ b/apps/as/src/pages/nti-hstry/ui/nti-hstry-list.tsx @@ -44,10 +44,25 @@ function NtiHstryList({ searchParams, pagination, onPaginationChange }: NtiHstry const pageQuery = useFindMyAsNotiList(queryParams); + const resolveNotiUrl = (row: NotiAsUserResponseDto) => { + const notiUrl = row.notiUrl?.trim(); + if (!notiUrl) return null; + + if (row.docSeComCd === "SEWER") { + const parts = notiUrl.split("/"); + if (parts.length > 1) { + parts.pop(); + return parts.join("/"); + } + } + + return notiUrl; + }; + const handleAction = useCallback( async (row: NotiAsUserResponseDto) => { await readNoti(row.notiId); - const notiUrl = row.notiUrl?.trim(); + const notiUrl = resolveNotiUrl(row); if (!notiUrl) return; router.push(notiUrl); },