I have a form and after submit the user navigates to the newly created page. I want to prevent the user from going back to the form after the page is created.
I’ve used reloadAll: true but it doesn’t work. What is the right format?
Doesn't work:
// Navigate to Example
app.router.navigate({
name: 'wod',
params: {status: "example"},
options: {
reloadAll: true,
clearPreviousHistory: true
}
});
Doesn't work:
// Navigate to Example
app.router.navigate({
name: 'wod',
params: {status: "example"}
});
// Prevent going back, clear history
app.router.clearPreviousHistory();
When I add reloadAll: true option to the route it works. But I don’t want this as default behaviour for this route because there are multiple ways to visit this page. I only want to disable history when you visit this page after the form is submitted.