title: How to redirect using fetch API?
body: <p>I have a redirect view like this:</p>
  
  <pre><code>def remove_from_cart(request, product_id):
      product = Product.objects.get(pk=product_id)
      cart = Cart(request)
      cart.remove_product(product)
      cart.save()
      message = Message(request)
      message.set(f'{product.name} has been removed from cart!')
      return redirect('shopping:cart')
  </code></pre>
  
  <p>I am trying to redirect to this views's response URL via <code>fetch</code> API:</p>
  
  <pre><code>remove.addEventListener('click', e =&gt; {
      let url = "{% url 'shopping:remove_from_cart' 123 %}".replace('123', e.target.id)
      fetch(url, {
          redirect: 'follow',
       })
       .then(response =&gt; console.log(response.status)) // logs 200
  })
  </code></pre>
  
  <p>But the redirect does not happen. It works fine if I enter the url manually, though.</p>
  
  <p>How can I correct this?</p>