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

which controllers make sense to add these two `before_filter` methods?