Smarter redirect header usage.

Because fuck constantly being redirected to the index page after every post mod action.

I already planned to do this earlier, but #317 also brought it up.