title: Back button causes current page postback. ASP.Net MVC
body: <p>I have a controller with 'Details' action and 'Edit' action.
  I navigate to <strong>Edit</strong> using <code>View();</code> then a page with a partial view is rendered.</p>
  
  <p>In the partial view there is a form:</p>
  
  <pre><code>@using (Html.BeginForm("CreateOrEdit", "Licenses", FormMethod.Post, new { @class = "pure-form pure-form-aligned", id = "change", onsubmit = "process(this);" }))
  {
      @Html.AntiForgeryToken()
      @Html.ValidationSummary(true)
  
      &lt;div class="floatLeft width100per"&gt;
          @Html.HiddenFor(model =&gt; model.Id)
          @Html.HiddenFor(model =&gt; model.CustomerId)
  
          &lt;button onclick="goBack()" type="button" class="pure-button pure-button-primary newButton"&gt;Back&lt;/button&gt;
          &lt;input type="submit" value="Save" class="pure-button pure-button-primary newButton marginRight10" onclick="getModules(); setGuid('@Guid.NewGuid()');" /&gt;
          &lt;div class="floatLeft pure-form"&gt;
  </code></pre>
  
  <p><strong>goBack() function:</strong></p>
  
  <pre><code>function goBack() {
      history.go(-1);
  }
  </code></pre>
  
  <p>If I navigate to <strong>Edit</strong> and press the back button, everything's fine.
  But if I press the <strong>Save</strong> button, form is being submitted and <strong>CreateAndEdit</strong> action is called - still OK. </p>
  
  <p>The <strong>CreateAndEdit</strong> action uses:</p>
  
  <pre><code>RedirectToAction("Details", new { id = license.Id });
  </code></pre>
  
  <p>in order to navigate to <strong>Details</strong> page again.</p>
  
  <p>Then, if I go to "Edit" again and then press <strong>Back</strong> -
  <strong>CreateAndEdit</strong> action is called again - Not OK!</p>
  
  <p>How can I always go back to "Details" page without calling <strong>CreateAndEdit</strong> when <strong>Back</strong> is pressed.</p>