From 7895da558a5bd3abd3e1be3d23007557c970b8b6 Mon Sep 17 00:00:00 2001 From: subsub-e Date: Tue, 20 Aug 2024 22:56:38 +0900 Subject: [PATCH] [fix] shared link logic fix --- service/src/pages/joinEvent/commentList/Redirect.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;