# File lib/refinery/authenticated_system.rb, line 38
    def sanitized_stored_location_for(resource_or_scope)
      # `stored_location_for` is the devise method that pops the
      # scoped `return_to` key
      location = stored_location_for(resource_or_scope)
      location.sub!("//", "/") if location.respond_to?(:sub!)
      location
    end