Add post_redirect js helper.