module Devise::Controllers::StoreLocation

def remove_domain_from_uri(uri)

def remove_domain_from_uri(uri)
  [uri.path.sub(/\A\/+/, '/'), uri.query].compact.join('?')
end