How to properly redirect to another site without breaking the browser back button?
The correct way is sending HTTP status code 302 instead of 200 and adding Location: <url> to response headers. How to do this depends on the WEB framework you are running your Python app on.
I am trying to make a redirection from a python app to another site. I am currently doing it in the controller which works just fine but breaks the back browser button.
I know that a redirection with meta refresh or js, will allow me to add a delay so the user will have time to go back but I read everywhere that these techniques are deprecated and better be avoided.
Any thoughts or ideas?
Thanks