tighten / ziggy

Use your Laravel routes in JavaScript.
MIT License
3.91k stars 248 forks source link

How to redirect to previous route #562

Closed Emokores256 closed 2 years ago

Emokores256 commented 2 years ago

It's frustrating that there is no feature to redirect to the previous route without forcing page refresh? This feature is lacking in Ziggy routes

This is a feature to add so that we can maintain the redirects of SPAs (no page refreshes).

bakerkretzmar commented 2 years ago

Ziggy just generates URLs, like Laravel's own route() function, it doesn't handle navigation. Whether you want to use a full page refresh or some other method for navigation, forward or back, is completely up to you and will depend on the framework(s) you're using.