From cbd338959a5ff0352e07a90e2b93208e282b6c37 Mon Sep 17 00:00:00 2001 From: Kangnets Date: Thu, 29 Aug 2024 18:45:06 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20base=20url=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.tsx | 4 +-- src/components/Comment/Comment.tsx | 2 +- src/components/MainCarousel/index.tsx | 2 +- src/components/TextArea/TextArea.tsx | 2 +- .../common/Header/component/AuthButton.tsx | 2 +- .../common/Header/component/HeaderSheet.tsx | 2 +- .../common/Header/const/pathData.tsx | 30 +++++++++---------- .../container/auditDetailEditSection.tsx | 2 +- .../auditDetail/utils/locationHandler.ts | 2 +- .../audit/auditEdit/hook/useAuditEdit.ts | 2 +- src/pages/audit/const/data.ts | 2 +- src/pages/audit/page.tsx | 4 +-- src/pages/audit/utils/cardHandler.ts | 2 +- src/pages/audit/utils/categoryHandler.ts | 2 +- .../data/containers/DataTitleSection.tsx | 2 +- src/pages/data/containers/dataEditBtn.tsx | 2 +- .../data/containers/edit/UploadSection.tsx | 2 +- src/pages/data/page.tsx | 4 +-- .../containers/CertifyApplySection.tsx | 4 +-- .../containers/CertifyErrorSection.tsx | 2 +- .../containers/GeneralRegisterSection.tsx | 8 ++--- src/pages/intro/container/IntroEditButton.tsx | 2 +- .../intro/container/hooks/useQueryMap.ts | 4 +-- .../container/hooks/useValidateAndRedirect.ts | 2 +- .../intro/container/utils/switchUtils.ts | 4 +-- src/pages/kakao/containers/KakaoRedirect.tsx | 4 +-- .../PostPetitionDetailPostSection.tsx | 10 +++---- .../PetitionNoticePopularSection.tsx | 4 +-- .../PostSection/PetitionPostSection.tsx | 6 ++-- .../PetitionNoticeEditorSection.tsx | 4 +-- 30 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/components/Breadcrumb/index.tsx b/src/components/Breadcrumb/index.tsx index 57eb7599..981a2ade 100644 --- a/src/components/Breadcrumb/index.tsx +++ b/src/components/Breadcrumb/index.tsx @@ -14,8 +14,8 @@ interface BreadcrumbProps { const Breadcrumb = ({ items = new Map([ - ['소개', '/intro?category=president&sub-category=intro'], - ['총학생회', '/intro?category=president&sub-category=intro'], + ['소개', '/homepage-frontend/intro?category=president&sub-category=intro'], + ['총학생회', '/homepage-frontend/intro?category=president&sub-category=intro'], ]), className = '', }: BreadcrumbProps) => { diff --git a/src/components/Comment/Comment.tsx b/src/components/Comment/Comment.tsx index 1b4d164b..7373f5c7 100644 --- a/src/components/Comment/Comment.tsx +++ b/src/components/Comment/Comment.tsx @@ -82,7 +82,7 @@ export function Comment({ comment, replyComment, className, isReply = false, com if (!localStorage.getItem('kakaoData')) { const check = window.confirm('로그인 회원만 사용 가능한 기능입니다!'); if (check) { - navigate('/register'); + navigate('/homepage-frontend/register'); } else { return; } diff --git a/src/components/MainCarousel/index.tsx b/src/components/MainCarousel/index.tsx index 651da4cc..22cb5f18 100644 --- a/src/components/MainCarousel/index.tsx +++ b/src/components/MainCarousel/index.tsx @@ -35,7 +35,7 @@ const MainCarousel = () => {
landscape navigate('/register')} + onClick={() => navigate('/homepage-frontend/register')} > 로그인 diff --git a/src/containers/common/Header/component/HeaderSheet.tsx b/src/containers/common/Header/component/HeaderSheet.tsx index 90c46eb4..c9780ac4 100644 --- a/src/containers/common/Header/component/HeaderSheet.tsx +++ b/src/containers/common/Header/component/HeaderSheet.tsx @@ -72,7 +72,7 @@ export function HeaderSheet({ trigger, state = State.Logout }: HeaderSheetProps) window.location.reload()} > {state === State.Login ? '내정보' : '로그인'} diff --git a/src/containers/common/Header/const/pathData.tsx b/src/containers/common/Header/const/pathData.tsx index 522a16e3..e355f585 100644 --- a/src/containers/common/Header/const/pathData.tsx +++ b/src/containers/common/Header/const/pathData.tsx @@ -1,34 +1,34 @@ export const menuItems = { 소개: [ - { name: '총학생회', path: '/intro?category=president&sub-category=intro' }, + { name: '총학생회', path: '/homepage-frontend/intro?category=president&sub-category=intro' }, { name: '중앙집행위원회', - path: '/intro?category=central_executive_committee&sub-category=intro', + path: '/homepage-frontend/intro?category=central_executive_committee&sub-category=intro', }, { name: '중앙운영위원회', - path: '/intro?category=central_operating_committee&sub-category=intro', + path: '/homepage-frontend/intro?category=central_operating_committee&sub-category=intro', }, ], 학교생활: [ - { name: '공지사항', path: '/notice' }, - { name: '일정', path: '/menu7' }, - { name: '제휴안내', path: '/partnership' }, + { name: '공지사항', path: '/homepage-frontend/notice' }, + { name: '일정', path: '/homepage-frontend/menu7' }, + { name: '제휴안내', path: '/homepage-frontend/partnership' }, //{ name: "분실물게시판", path: "/lost-article" }, // 보류 - { name: '캠퍼스맵', path: '/campus' }, + { name: '캠퍼스맵', path: '/homepage-frontend/campus' }, ], 학생자치기구: [ - { name: '산하기구', path: '/affiliated_organization' }, - { name: '특별기구', path: '/special_organization' }, - { name: '감사기구', path: '/intro?category=audit&sub-category=intro' }, + { name: '산하기구', path: '/homepage-frontend/affiliated_organization' }, + { name: '특별기구', path: '/homepage-frontend/special_organization' }, + { name: '감사기구', path: '/homepage-frontend/intro?category=audit&sub-category=intro' }, ], 소통: [ - { name: '학생청원게시판', path: '/petition-notice' }, - { name: '건의게시판', path: '/sug-notice' }, - { name: '인권신고게시판', path: '/human-notice' }, + { name: '학생청원게시판', path: '/homepage-frontend/petition-notice' }, + { name: '건의게시판', path: '/homepage-frontend/sug-notice' }, + { name: '인권신고게시판', path: '/homepage-frontend/human-notice' }, ], }; -export const dataPath = '/data'; // 자료집 라우트 경로 +export const dataPath = '/homepage-frontend/data'; // 자료집 라우트 경로 -export const myPath = `/my`; // 내정보 라우트 경로 +export const myPath = `/homepage-frontend/my`; // 내정보 라우트 경로 diff --git a/src/pages/audit/auditDetail/container/auditDetailEditSection.tsx b/src/pages/audit/auditDetail/container/auditDetailEditSection.tsx index 040bbfd1..027253e2 100644 --- a/src/pages/audit/auditDetail/container/auditDetailEditSection.tsx +++ b/src/pages/audit/auditDetail/container/auditDetailEditSection.tsx @@ -32,7 +32,7 @@ export function AuditDetailEditSection({ const handleDelete = async () => { await deleteHandler({ boardCode, postId, fileUrls, mutFile, mutPost }); - navigate(`/audit?category=notice`); + navigate(`/homepage-frontend/audit?category=notice`); window.location.reload(); }; diff --git a/src/pages/audit/auditDetail/utils/locationHandler.ts b/src/pages/audit/auditDetail/utils/locationHandler.ts index 93357772..f93d1d7c 100644 --- a/src/pages/audit/auditDetail/utils/locationHandler.ts +++ b/src/pages/audit/auditDetail/utils/locationHandler.ts @@ -12,5 +12,5 @@ interface dataType { } export const handleLocation = ({ data }: dataType, navigate: NavigateFunction) => { - navigate(`/audit/patch`, { state: { data } }); + navigate(`/homepage-frontend/audit/patch`, { state: { data } }); }; diff --git a/src/pages/audit/auditEdit/hook/useAuditEdit.ts b/src/pages/audit/auditEdit/hook/useAuditEdit.ts index ed456207..9f5df997 100644 --- a/src/pages/audit/auditEdit/hook/useAuditEdit.ts +++ b/src/pages/audit/auditEdit/hook/useAuditEdit.ts @@ -52,7 +52,7 @@ export function useAuditEdit() { }, }); - navigate(`/audit?category=notice`); + navigate(`/homepage-frontend/audit?category=notice`); window.location.reload(); } catch (e) { console.error(e); diff --git a/src/pages/audit/const/data.ts b/src/pages/audit/const/data.ts index d26057c7..f63437b0 100644 --- a/src/pages/audit/const/data.ts +++ b/src/pages/audit/const/data.ts @@ -1,7 +1,7 @@ // Breadcrumb export const items = new Map([ ['학교자치기구', null], - ['감사기구', '/audit?category=all'], + ['감사기구', '/homepage-frontend/audit?category=all'], ]); export const categoryMap: Record = { diff --git a/src/pages/audit/page.tsx b/src/pages/audit/page.tsx index b4166e9c..c0fb149b 100644 --- a/src/pages/audit/page.tsx +++ b/src/pages/audit/page.tsx @@ -38,7 +38,7 @@ export function AuditPage() { onSubcategorySelect={(selectedCategory) => { const categoryKey = Object.keys(categoryMap).find((key) => categoryMap[key] === selectedCategory); if (categoryKey) { - navigate(`/audit?category=${categoryKey}`); + navigate(`/homepage-frontend/audit?category=${categoryKey}`); } }} /> @@ -48,7 +48,7 @@ export function AuditPage() { currentPage={currentPage} onPageChange={handlePageChange} onWriteClick={() => { - navigate(`/audit/edit`); + navigate(`/homepage-frontend/audit/edit`); }} className="pt-[32px]" /> diff --git a/src/pages/audit/utils/cardHandler.ts b/src/pages/audit/utils/cardHandler.ts index 160a352b..3934b779 100644 --- a/src/pages/audit/utils/cardHandler.ts +++ b/src/pages/audit/utils/cardHandler.ts @@ -7,5 +7,5 @@ export const handleCardClick = ( thumbnailImage: string | undefined, navigate: NavigateFunction ) => { - navigate(`/audit/${id}`, { state: { postId, category, thumbnailImage } }); + navigate(`/homepage-frontend/audit/${id}`, { state: { postId, category, thumbnailImage } }); }; diff --git a/src/pages/audit/utils/categoryHandler.ts b/src/pages/audit/utils/categoryHandler.ts index 21401421..09446e07 100644 --- a/src/pages/audit/utils/categoryHandler.ts +++ b/src/pages/audit/utils/categoryHandler.ts @@ -9,7 +9,7 @@ export function handleCategory( ) { const categoryIndex = categories.indexOf(selectedCategory); const value = categoryValues[categoryIndex]; - navigate(`/audit?category=${value}`); + navigate(`/homepage-frontend/audit?category=${value}`); } export function findCategoryKey(selectedCategory: string): string | undefined { diff --git a/src/pages/data/containers/DataTitleSection.tsx b/src/pages/data/containers/DataTitleSection.tsx index c0adacbc..1cb4a8ae 100644 --- a/src/pages/data/containers/DataTitleSection.tsx +++ b/src/pages/data/containers/DataTitleSection.tsx @@ -26,7 +26,7 @@ export default function DataTitleSection({ userId }: DataTitleSectionProps) {
)} - {location.pathname === '/data/edit' && ( + {location.pathname === '/homepage-frontend/data/edit' && (
자료집
diff --git a/src/pages/data/containers/dataEditBtn.tsx b/src/pages/data/containers/dataEditBtn.tsx index 5e968dc9..1558dcd2 100644 --- a/src/pages/data/containers/dataEditBtn.tsx +++ b/src/pages/data/containers/dataEditBtn.tsx @@ -6,7 +6,7 @@ export default function DataEditBtn({ ...props }) { const navigate = useNavigate(); const handleClick = () => { - navigate('/data/edit'); + navigate('/homepage-frontend/data/edit'); }; return ( diff --git a/src/pages/data/containers/edit/UploadSection.tsx b/src/pages/data/containers/edit/UploadSection.tsx index 068b8687..ab1daf09 100644 --- a/src/pages/data/containers/edit/UploadSection.tsx +++ b/src/pages/data/containers/edit/UploadSection.tsx @@ -279,7 +279,7 @@ export default function UploadSection({ userId }: { userId: string }) { if (response.status === 200) { alert('파일 업로드가 완료되었습니다.'); - navigate('/data'); + navigate('/homepage-frontend/data'); } else { alert('오류가 발생했습니다. 다시 시도해주세요.'); } diff --git a/src/pages/data/page.tsx b/src/pages/data/page.tsx index 4ca32e25..a9e6c5ef 100644 --- a/src/pages/data/page.tsx +++ b/src/pages/data/page.tsx @@ -16,7 +16,7 @@ export function Data() {
- {location.pathname === '/data' && ( + {location.pathname === '/homepage-frontend/data' && ( <> @@ -28,7 +28,7 @@ export function Data() { )} - {location.pathname === '/data/edit' && userId && ( + {location.pathname === '/homepage-frontend/data/edit' && userId && ( <>
diff --git a/src/pages/general/containers/CertifyApplySection.tsx b/src/pages/general/containers/CertifyApplySection.tsx index 60708ca8..1360adb2 100644 --- a/src/pages/general/containers/CertifyApplySection.tsx +++ b/src/pages/general/containers/CertifyApplySection.tsx @@ -22,7 +22,7 @@ export function CertifyApplySection() { const [isButtonDisabled, setIsButtonDisabled] = useState(true); - const isScouncilPath = location.pathname === '/register/scouncil'; + const isScouncilPath = location.pathname === '/homepage-frontend/register/scouncil'; const formValues = watch(); useEffect(() => { @@ -51,7 +51,7 @@ export function CertifyApplySection() { console.log('Response from server:', response); alert('문의내용이 확인되었습니다.'); - navigate('/register/errorcheck'); + navigate('/homepage-frontend/register/errorcheck'); } catch (error: any) { // Added type `any` to handle any error shape if (error.response) { diff --git a/src/pages/general/containers/CertifyErrorSection.tsx b/src/pages/general/containers/CertifyErrorSection.tsx index 9d3c093f..2cbe996c 100644 --- a/src/pages/general/containers/CertifyErrorSection.tsx +++ b/src/pages/general/containers/CertifyErrorSection.tsx @@ -6,7 +6,7 @@ export function CertifyErrorSection() { const navigate = useNavigate(); const handleToMain = () => { - navigate('/'); + navigate('/homepage-frontend'); }; return (
diff --git a/src/pages/general/containers/GeneralRegisterSection.tsx b/src/pages/general/containers/GeneralRegisterSection.tsx index 0995bdf6..41b9692f 100644 --- a/src/pages/general/containers/GeneralRegisterSection.tsx +++ b/src/pages/general/containers/GeneralRegisterSection.tsx @@ -19,7 +19,7 @@ export function GeneralRegisterSection({ subSection1, buttonSection }: LoginForm const location = useLocation(); const { sort } = useParams(); - const isScouncilPath = location.pathname === '/register/scouncil'; + const isScouncilPath = location.pathname === '/homepage-frontend/register/scouncil'; const { register, @@ -51,7 +51,7 @@ export function GeneralRegisterSection({ subSection1, buttonSection }: LoginForm if (kakaoData) { const parsedKakaoData = JSON.parse(kakaoData); if (parsedKakaoData.data?.name && parsedKakaoData.data?.studentId) { - navigate('/'); + navigate('/homepage-frontend'); } } } @@ -100,7 +100,7 @@ export function GeneralRegisterSection({ subSection1, buttonSection }: LoginForm if (response.status === 200) { alert('학생 정보가 확인되었습니다'); localStorage.setItem('userId', formValuesScouncil.accountId); - navigate('/'); + navigate('/homepage-frontend'); } else { alert('오류가 발생했습니다. 다시 시도해주세요.'); setScoucilError(true); @@ -121,7 +121,7 @@ export function GeneralRegisterSection({ subSection1, buttonSection }: LoginForm }; const handleCertifyError = () => { - navigate('/register/errorapply'); + navigate('/homepage-frontend/register/errorapply'); }; return ( diff --git a/src/pages/intro/container/IntroEditButton.tsx b/src/pages/intro/container/IntroEditButton.tsx index 843bc920..44cc2d06 100644 --- a/src/pages/intro/container/IntroEditButton.tsx +++ b/src/pages/intro/container/IntroEditButton.tsx @@ -6,7 +6,7 @@ export default function IntroEditButton() { const [searchParams] = useSearchParams(); const handleEditClick = () => { - navigate(`/intro/edit?${searchParams.toString()}`); + navigate(`/homepage-frontend/intro/edit?${searchParams.toString()}`); }; return ( diff --git a/src/pages/intro/container/hooks/useQueryMap.ts b/src/pages/intro/container/hooks/useQueryMap.ts index 0e06a2c9..49650eb8 100644 --- a/src/pages/intro/container/hooks/useQueryMap.ts +++ b/src/pages/intro/container/hooks/useQueryMap.ts @@ -30,10 +30,10 @@ export const useCategoryMap = ({ if (selectedSubcategory) { onSubSelect(selectedSubcategory); setSearchParams({ category: selectedCategory, 'sub-category': selectedSubcategory }); - navigate(`/intro?category=${selectedCategory}&sub-category=${selectedSubcategory}`); + navigate(`/homepage-frontend/intro?category=${selectedCategory}&sub-category=${selectedSubcategory}`); } else { setSearchParams({ category: selectedCategory }); - navigate(`/intro?category=${selectedCategory}&sub-category=intro`); + navigate(`/homepage-frontend/intro?category=${selectedCategory}&sub-category=intro`); } }; diff --git a/src/pages/intro/container/hooks/useValidateAndRedirect.ts b/src/pages/intro/container/hooks/useValidateAndRedirect.ts index 50b6e6d9..114bd83a 100644 --- a/src/pages/intro/container/hooks/useValidateAndRedirect.ts +++ b/src/pages/intro/container/hooks/useValidateAndRedirect.ts @@ -17,7 +17,7 @@ export function useValidateAndRedirect({ category, subCategory }: ValidateAndRed useEffect(() => { if (!isValidCategory || !isValidSubCategory) { - navigate('/intro?category=president&sub-category=intro', { replace: true }); + navigate('/homepage-frontend/intro?category=president&sub-category=intro', { replace: true }); } }, [isValidCategory, isValidSubCategory, navigate]); diff --git a/src/pages/intro/container/utils/switchUtils.ts b/src/pages/intro/container/utils/switchUtils.ts index a35f7abc..a28c745b 100644 --- a/src/pages/intro/container/utils/switchUtils.ts +++ b/src/pages/intro/container/utils/switchUtils.ts @@ -5,9 +5,9 @@ export function useAuditSwitch() { const handleAuditSwitchClick = (index: number) => { if (index === 0) { - navigate('/intro?category=audit&sub-category=intro'); + navigate('/homepage-frontend/intro?category=audit&sub-category=intro'); } else { - navigate('/audit?category=all'); + navigate('/homepage-frontend/audit?category=all'); } }; diff --git a/src/pages/kakao/containers/KakaoRedirect.tsx b/src/pages/kakao/containers/KakaoRedirect.tsx index cfa8be03..93c35efe 100644 --- a/src/pages/kakao/containers/KakaoRedirect.tsx +++ b/src/pages/kakao/containers/KakaoRedirect.tsx @@ -21,9 +21,9 @@ const KakaoRedirect = () => { if (res) { // res.data 객체에 name과 studentId가 존재하는지 확인 if (res.data?.name && res.data?.studentId) { - navigate('/'); // 조건을 만족하면 홈으로 이동 + navigate('/homepage-frontend'); // 조건을 만족하면 홈으로 이동 } else { - navigate('/register/onboarding'); // 조건을 만족하지 않으면 onboarding 페이지로 이동 + navigate('/homepage-frontend/register/onboarding'); // 조건을 만족하지 않으면 onboarding 페이지로 이동 } } } catch (err) { diff --git a/src/pages/petition-notice/[id]/containers/PostPetitionDetailPostSection.tsx b/src/pages/petition-notice/[id]/containers/PostPetitionDetailPostSection.tsx index 811fb410..1f7a3b12 100644 --- a/src/pages/petition-notice/[id]/containers/PostPetitionDetailPostSection.tsx +++ b/src/pages/petition-notice/[id]/containers/PostPetitionDetailPostSection.tsx @@ -29,7 +29,7 @@ export function PostPetitionDetailPostSection() { const breadcrumbItems = new Map([ ['소통', null], - ['청원게시판', '/petition-notice'], + ['청원게시판', '/homepage-frontend/petition-notice'], ]); const navigate = useNavigate(); const { width } = useResize(); @@ -49,7 +49,7 @@ export function PostPetitionDetailPostSection() { const deleteCheck = window.confirm('게시글을 삭제하시겠습니까?'); if (deleteCheck) { await delBoardPosts('청원게시판', data?.data.postDetailResDto.postId!); - navigate('/petition-notice'); + navigate('/homepage-frontend/petition-notice'); } else { return; } @@ -57,11 +57,11 @@ export function PostPetitionDetailPostSection() { const handleEditContent = () => { localStorage.setItem('edit-post', JSON.stringify(data?.data.postDetailResDto.postId)); - navigate('/petition-notice/edit'); + navigate('/homepage-frontend/petition-notice/edit'); }; const handleMoveToList = () => { - navigate('/petition-notice'); + navigate('/homepage-frontend/petition-notice'); }; const mutation = usePostPostReaction(); @@ -72,7 +72,7 @@ export function PostPetitionDetailPostSection() { if (!localStorage.getItem('kakaoData')) { const check = window.confirm('로그인 회원만 사용 가능한 기능입니다!'); if (check) { - navigate('/register'); + navigate('/homepage-frontend/register'); } else { return; } diff --git a/src/pages/petition-notice/containers/PopularSection/PetitionNoticePopularSection.tsx b/src/pages/petition-notice/containers/PopularSection/PetitionNoticePopularSection.tsx index 96646fb4..3e8016d4 100644 --- a/src/pages/petition-notice/containers/PopularSection/PetitionNoticePopularSection.tsx +++ b/src/pages/petition-notice/containers/PopularSection/PetitionNoticePopularSection.tsx @@ -77,7 +77,7 @@ export function PetitionNoticePopularSection() { ); const handlePostDetail = (id: number) => { - navigate(`/petition-notice/${id}`); + navigate(`/homepage-frontend/petition-notice/${id}`); }; return ( @@ -88,7 +88,7 @@ export function PetitionNoticePopularSection() { ) : (

인기청원

-
+
{data?.data.postListResDto && data?.data.postListResDto.map((content) => ( diff --git a/src/pages/petition-notice/containers/PostSection/PetitionPostSection.tsx b/src/pages/petition-notice/containers/PostSection/PetitionPostSection.tsx index 8bb26448..119e0fd3 100644 --- a/src/pages/petition-notice/containers/PostSection/PetitionPostSection.tsx +++ b/src/pages/petition-notice/containers/PostSection/PetitionPostSection.tsx @@ -45,15 +45,15 @@ export function PetitionPostSection() { const handleWriteBtnClick = () => { if (localStorage.getItem('kakaoData')) { - navigate('/petition-notice/edit'); + navigate('/homepage-frontend/petition-notice/edit'); } else { window.alert('청원 글 작성은 로그인 후 이용이 가능합니다!'); - navigate('/register'); + navigate('/homepage-frontend/register'); } }; const handlePostDetail = (id: number) => { - navigate(`/petition-notice/${id}`); + navigate(`/homepage-frontend/petition-notice/${id}`); }; const handleSubcategorySelect = (category: PetitionSubcategoriesType) => { diff --git a/src/pages/petition-notice/edit/containers/PetitionNoticeEditorSection.tsx b/src/pages/petition-notice/edit/containers/PetitionNoticeEditorSection.tsx index 72caba12..b41a236f 100644 --- a/src/pages/petition-notice/edit/containers/PetitionNoticeEditorSection.tsx +++ b/src/pages/petition-notice/edit/containers/PetitionNoticeEditorSection.tsx @@ -81,7 +81,7 @@ export function PetitionNoticeEditorSection() { const check = window.confirm('청원 글을 등록하시겠습니까?'); if (check) { await postBoardPosts(posts); - navigate('/petition-notice'); + navigate('/homepage-frontend/petition-notice'); } else { return; } @@ -107,7 +107,7 @@ export function PetitionNoticeEditorSection() { localStorage.removeItem('edit-post'); const check = window.confirm('편집하시겠습니까?'); if (check) { - navigate('/petition-notice'); + navigate('/homepage-frontend/petition-notice'); } else { return; }