From 55b17891fb4046d3f491e2c42ad428d4b767e8e1 Mon Sep 17 00:00:00 2001 From: kinou-p Date: Thu, 15 Jun 2023 19:06:04 +0200 Subject: [PATCH] auto push --- containers/react/src/components/Social/Friend.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/react/src/components/Social/Friend.jsx b/containers/react/src/components/Social/Friend.jsx index ce2bafb5..8627b503 100644 --- a/containers/react/src/components/Social/Friend.jsx +++ b/containers/react/src/components/Social/Friend.jsx @@ -6,7 +6,7 @@ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/09 08:18:58 by apommier #+# #+# */ -/* Updated: 2023/06/15 19:03:04 by apommier ### ########.fr */ +/* Updated: 2023/06/15 19:05:14 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ @@ -79,7 +79,8 @@ export default function Friend({currentUser}) }; const handleButtonClick = (user) => { - let path = `http://` + process.env.REACT_APP_BASE_URL + `/profile/${user.username}`; + let path = `http://` + process.env.REACT_APP_BASE_URL + `/profile/${user.username}`; + console.log("path= ", path) // history(path, { replace: true }); // window.location.replace(path); window.history.pushState({}, null, path);