title: Woocommerce: redirect (keep) user in cart page after log-in in cart page
body: <p>By default, Woocommerce displays the user login box in the checkout page; I wanted it to appear on the cart page as well, so I have added the following to the functions.php file in my theme's directory:</p>
  
  <pre><code>// display login form in cart page
  add_action( 'woocommerce_after_cart', 'woocommerce_login_form' );
  </code></pre>
  
  <p>This works, but after the user log-in, he is redirected to his account page; I would like him to be kept at the cart page, which I think can be done by passing a redirect argument, as per the function's architecture:</p>
  
  <pre><code>function woocommerce_login_form( $args = array() ) {
      $defaults = array(
          'message'  =&gt; '',
          'redirect' =&gt; '',
          'hidden'   =&gt; false
      );
      $args = wp_parse_args( $args, $defaults  );
      wc_get_template( 'global/form-login.php', $args );
  }
  </code></pre>
  
  <p>How can I pass an url as an argument to this function?</p>
  
  <p>Thank you for your help.</p>