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

should be saved *redirect* url