'How to redirect back in Inertia.js

I have a page that can be accessed from multiple pages. Is it possible to redirect back and preserve the state? I'm using Laravel + Inertia.js.

something like

this.$inertia.visit(route().back(), {preserveState: true});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source