You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function login(Request $request)
{
...........
.....
........
return to_route('dashboard')
}
After redirected to dashboard page, then when I clicked the back button at first nothing's happen, then I clicked the back button again then it will go back to login page not to landing page.
This discussion was converted from issue #1904 on June 24, 2024 14:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed Laravel + InertiaJS yesterday (June 22, 2024).
The replace option in useForm hook not working properly.
"/" (Landing Page) <- This is my starting point.
"/login" (Login Page) <- My second point.
"/dashboard" (Dashboard Page) <- My third point, after the POST request.
In form:
const form = useForm(...)
const handleSubmit: React.FormEventHandler = (e) => {
e.preventDefault()
}
At the controller:
public function login(Request $request)
{
...........
.....
........
}
After redirected to dashboard page, then when I clicked the back button at first nothing's happen, then I clicked the back button again then it will go back to login page not to landing page.
Beta Was this translation helpful? Give feedback.
All reactions