auto push

This commit is contained in:
kinou-p 2023-06-15 19:10:04 +02:00
parent 539a0efaa5
commit 252c611476

View File

@ -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);