auto push
This commit is contained in:
parent
539a0efaa5
commit
252c611476
@ -53,7 +53,7 @@ export default function Friend({currentUser})
|
|||||||
}, [clickEvent])
|
}, [clickEvent])
|
||||||
|
|
||||||
const handleButtonClick = (user) => {
|
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 });
|
// history(path, { replace: true });
|
||||||
// window.location.replace(path);
|
// window.location.replace(path);
|
||||||
window.history.pushState({}, null, path);
|
window.history.pushState({}, null, path);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user