Which option replaces the current history entry instead of pushing a new one?
Passing { replace: true } tells React Router to replace the current history entry. This is useful after login, logout, or redirects where the previous page should not stay in the back stack.