class Browser::Middleware

def resolve_redirection(env, current_path, path)

def resolve_redirection(env, current_path, path)
  uri = URI.parse(path)
  if uri.path == current_path
    run_app(env)
  else
    redirect(path)
  end
end