I have the following route "/event/:eventId"
When the user comes from the homepage and then clicks on a card, it redirects to the event page (Everything working fine until now)
But inside of the event page, I have other cards that redirect to other events pages with different IDs as route params, and clicking on then just change the path but doesn't re-render the page.
It seems that if i'm in a page with the same pathname, doesn't matter if the route params change, it won't re-render the page.
I tried to use a <Link> component instead of the history.push but it doesn't work either.
That's the redirect function:
const onCardClick = () => {
history.push(
EVENT_PAGE_LOCATION.toUrl({
eventId: event?.id,
}),
);
};