How to Redirect User to their Previous Page
I have built a Comment System and after the user posts they are directed to a successful post page.
Although the system works fine, I need to use cookie toolkit to redirect the user back to whatever page they were previously on.
If you wanna see the system:
index.php#post
This is a problem because there are comment forms on a variety of different pages and they all post to the same page.
Thanks in advance