Level 102
An easy fix. Set the inertia request to replace: true
That way the login page is overwritten in browser history
Hi all,
Currently struggling with Inertia, is that how do we prevent showing login page after user logged and hit browser back button. Searched many ways, but none of them were satisfactory
Any help would be appreciated.
@XiaTesting sure. An example
Inertia.post('/login', {
email: email,
password: password
}, {
replace: true
} )
Please or to participate in this conversation.