From 252c61147667fab090c028c643e769fa1a4f2709 Mon Sep 17 00:00:00 2001 From: kinou-p Date: Thu, 15 Jun 2023 19:10:04 +0200 Subject: [PATCH] auto push --- containers/react/src/components/Social/FriendRequest.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/react/src/components/Social/FriendRequest.jsx b/containers/react/src/components/Social/FriendRequest.jsx index 7db7f0bd..5f2f7c8a 100644 --- a/containers/react/src/components/Social/FriendRequest.jsx +++ b/containers/react/src/components/Social/FriendRequest.jsx @@ -53,7 +53,7 @@ export default function Friend({currentUser}) }, [clickEvent]) const handleButtonClick = (user) => { - let path = `http://localhost/profile/${user.username}`; + let path = `http://` + process.env.REACT_APP_BASE_URL + `/profile/${user.username}`; // history(path, { replace: true }); // window.location.replace(path); window.history.pushState({}, null, path);