fixes #5773 - redirect to referrer URL that includes page and search

@domcleal, good catch, this was the original rename of the method before I re-factored it. I'll add functional tests.