title: Newly Registered User are Redirected in Shopify
body: <p>I have a problem with my Shopify customer registration process that I just can’t work out, I hope someone here could shed some light on the issue.</p>
  
  <p>When customers successfully register on our Shopify site they are redirected to the root / home page, which for a while was exactly what our client wanted. The client now wants newly registered users to be taken to the Account page on successful registration.</p>
  
  <p>From what I have read the default behaviour is for the user to be redirected to Account page but, for some reason this isn’t happening for us.</p>
  
  <p>Looking at the headers it seems as though the user is sent to the Account page and then immediately 302'd to the root. Given that this isn’t the default behaviour I wonder has this been customised and if so where?</p>
  
  <p>I can’t find anything in our theme, code, js that does this. </p>
  
  <p>I'm totally confused.</p>
  
  <p><strong>[Edit]</strong>
  The registration form in shopify</p>
  
  <pre><code>{% form 'create_customer' %}
      {{ form.errors | default_errors }}
  
  
      &lt;div class="input-wrapper"&gt;
          &lt;label for="FirstName" class="label-hidden"&gt;
              {{ 'customer.register.first_name' | t }}
          &lt;/label&gt;
          &lt;input type="text"
              name="customer[first_name]"
              id="FirstName"
              placeholder="{{ 'customer.register.first_name' | t }}"
              autofocus
              {% if form.first_name %}value="{{ form.first_name }}"{% endif %}&gt;
      &lt;/div&gt;
  
      &lt;div class="input-wrapper"&gt;
          &lt;label for="LastName" class="label-hidden"&gt;
              {{ 'customer.register.last_name' | t }}
          &lt;/label&gt;
          &lt;input type="text"
              name="customer[last_name]"
              id="LastName"
              placeholder="{{ 'customer.register.last_name' | t }}"
              {% if form.last_name %}value="{{ form.last_name }}"{% endif %}&gt;
      &lt;/div&gt;
  
      &lt;div class="input-wrapper"&gt;
          &lt;label for="Email" class="label-hidden"&gt;
              {{ 'customer.register.email' | t }}
          &lt;/label&gt;
          &lt;input type="email"
              name="customer[email]"
              id="Email"
              class="{% if form.errors contains 'email' %}input-error{% endif %}"
              placeholder="{{ 'customer.register.email' | t }}"
              value="{% if form.email %}{{ form.email }}{% endif %}"
              spellcheck="false"
              autocomplete="off"
              autocapitalize="off"&gt;
      &lt;/div&gt;
  
      &lt;div class="input-wrapper"&gt;
          &lt;label for="CreatePassword" class="label-hidden"&gt;
              {{ 'customer.register.password' | t }}
          &lt;/label&gt;
          &lt;input type="password"
              name="customer[password]"
              id="CreatePassword"
              class="{% if form.errors contains 'password' %}input-error{% endif %}"
              placeholder="{{ 'customer.register.password' | t }}"&gt;
      &lt;/div&gt;
  
  
      &lt;div class="input-wrapper"&gt;
          &lt;label for="PrivacyPolicy" class="label-hidden"&gt;
              &lt;input type="checkbox"
              name="customer[note][Privacy Policy]"
              id="PrivacyPolicy"
              value="Accepted on {{ "now" | date: "%Y-%m-%d" }}" /&gt;
              I have read, understood and agree to the &lt;a href="/pages/privacy-policy" target="_blank"&gt;Privacy Policy&lt;/a&gt;.
          &lt;/label&gt;
      &lt;/div&gt;
  
      &lt;div class="input-wrapper"&gt;
          &lt;button disabled type="submit" class="button--primary" id="create_customer__submit"&gt;{{ 'customer.register.submit' | t }}&lt;/button&gt;
      &lt;/div&gt;
  
      &lt;a href="{{ shop.url }}"&gt;{{ 'customer.register.cancel' | t }}&lt;/a&gt;
  {% endform %}
  </code></pre>
  
  <p>I have seen that adding the following has been suggested as a possible fix, but it didn't make any difference in my case.  </p>
  
  <pre><code>&lt;input type="hidden" name="checkout_url" value="/account"&gt;
  </code></pre>
  
  <p>I can see through inspector that the form is being posted to "/account" and then redirected (302) to "/"</p>
  
  <p>The form above renders to </p>
  
  <pre><code>&lt;form method="post" action="/account" id="create_customer" accept-charset="UTF-8"&gt;
      &lt;input type="hidden" name="form_type" value="create_customer" /&gt;
      ....
      ....
      &lt;div class="input-wrapper"&gt;
          &lt;button disabled type="submit" class="button--primary" id="create_customer__submit"&gt;Create&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>