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
I am using turbo with spring boot thymeleaf and java 17
Looking for a way to redirect after successful sign in with full page to be reloaded
Have found this kind of workaround but since it is a workaround maybe there is already more clever way to follow redirect using default turbo frame configuration :
Idea behind my question is that many forms like registration, login, password reset, new Item creation flow are one page forms and user expects fully new page with results after success (with redirect)
turbo-visit-control - reload - does not work as I need since It causes every time full page reload for given page and I only need it once after particular form submitted
Am I missing something from doc?
The text was updated successfully, but these errors were encountered:
I am using turbo with spring boot thymeleaf and java 17
Looking for a way to redirect after successful sign in with full page to be reloaded
Have found this kind of workaround but since it is a workaround maybe there is already more clever way to follow redirect using default turbo frame configuration :
document.addEventListener("turbo:frame-missing", event => {
if (event.detail.response.redirected) {
event.preventDefault()
console.log(event.detail.response);
event.detail.visit(event.detail.response)
}
});
Idea behind my question is that many forms like registration, login, password reset, new Item creation flow are one page forms and user expects fully new page with results after success (with redirect)
turbo-visit-control - reload - does not work as I need since It causes every time full page reload for given page and I only need it once after particular form submitted
Am I missing something from doc?
The text was updated successfully, but these errors were encountered: