How can I execute jQuery/JS code as soon as a jQuery/JS redirect like...
$(location).attr(\'href\',\'/target_path\');
...or...
It is impossible to tell JavaScript to execute some code after a redirect.
However you have different options:
sessionStorage
) if you don't mind the smaller browser support