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

I added `:new` and `:show` to the before_filters