diff --git a/service/src/pages/joinEvent/commentList/Redirect.jsx b/service/src/pages/joinEvent/commentList/Redirect.jsx index 3b7e71f..0555c08 100644 --- a/service/src/pages/joinEvent/commentList/Redirect.jsx +++ b/service/src/pages/joinEvent/commentList/Redirect.jsx @@ -7,13 +7,12 @@ function Redirect() { const { commentId } = useParams(); const getLink = async () => { const response = await getRedirectLink(commentId); - console.log(response.originalUrl); - navigate(response.originalUrl); + navigate(`/${response.originalUrl}`); }; useEffect(() => { getLink(); - }, [commentId]); + }, []); } export default Redirect;