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

Yep, might it work?