Skip to content

Commit

Permalink
[fix] shared link logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
subsub-e committed Aug 20, 2024
1 parent af94eda commit 7895da5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service/src/pages/joinEvent/commentList/Redirect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 7895da5

Please sign in to comment.