code: def strip_prompt_login(path):
      
      uri = urlsplit(path)
      query_params = parse_qs(uri.query)
      prompt_list = query_params.get('prompt', '')[0].split()
      if 'login' in prompt_list:
          prompt_list.remove('login')
          query_params['prompt'] = ' '.join(prompt_list)
      if not query_params['prompt']:
          del query_params['prompt']
      uri = uri._replace(query=urlencode(query_params, doseq=True))
      return urlunsplit(uri)
docs: Strips 'login' from the 'prompt' query parameter.