What is the trade off between history push and replace?

I think you have the right idea.

I personally use .replace when redirecting from an invalid url (or non relevant, i.e. redirect to “profile” page when a logged user goes to the “/login” url), so using the browser’s “back” button works properly for the end user.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)