Currently, I am attempting to set it up so that when a user clicks on a profile, they are redirected to the profile page of the user they clicked on.
Here is the code I am using:
const self = this;
browserHistory.push({
pathname: '/users/' + self.props.user.username,
state: {_id: self.props.user._id}
});
Although this code correctly updates the URL in the address bar, the page does not automatically load or reload. Therefore, I have to manually refresh the page to view the user's profile.
I appreciate your time and assistance!