diff --git a/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx b/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx index c7ad5e8..6a47143 100644 --- a/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx +++ b/frontend/src/pages/FreeboardDetailPage/FreeboardDetailPage.jsx @@ -13,7 +13,7 @@ export default function FreeboardDetailPage() { const handleDelete = async () => { await freeboardDelete(freeboardId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx b/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx index 6d91d0d..9e54461 100644 --- a/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx +++ b/frontend/src/pages/NoticeDetailPage/NoticeDetailPage.jsx @@ -13,7 +13,7 @@ export default function NoticeDetailPage() { const handleDelete = async () => { await noticeDelete(noticeId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx b/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx index 29878bd..4111642 100644 --- a/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx +++ b/frontend/src/pages/QuestionDetailPage/QuestionDetailPage.jsx @@ -13,7 +13,7 @@ export default function QuestionDetailPage() { const handleDelete = async () => { await qnaDelete(qnaId); - navigate('..'); + navigate('..', { replace: true }); }; return ( diff --git a/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx b/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx index 61512ee..5070671 100644 --- a/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx +++ b/frontend/src/pages/QuizsetDetailPage/QuizsetDetailPage.jsx @@ -15,7 +15,7 @@ export default function QuizsetDetailPage() { }; const handleDelete = async () => { await quizsetDelete(quizsetId); - navigate('..'); + navigate('..', { replace: true }); }; return (