title: Redirecting to Display Form from New Form does not save item
body: <p>I am attempting to redirect to the Display Form instead of returning to the All Items view when a user saves an item using NewForm.aspx. I am able to accomplish the redirect, but it is not saving the item. My code is as follows and is entered into a Script Editor Web Part on the NewForm.aspx page:</p>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt; 
  &lt;script&gt;
  // JavaScript source code
  $(document).ready(function() {
  
  var button = $("input[id$=SaveItem]");  
  // change redirection behavior  
  button.removeAttr("onclick");  
  button.click(function() {  
      var elementName = $(this).attr("name");  
      var aspForm = $("form[id=aspnetForm]");  
      var oldPostbackUrl = aspForm.attr("action");  
      //var oldPostbackUrl = aspForm.action;
      var currentSourceValue = GetUrlKeyValue("Source", true, oldPostbackUrl);  
      var newPostbackUrl = oldPostbackUrl.replace(currentSourceValue, "/sites/mysite/DispForm.aspx");  
  
      if (!PreSaveItem()) return false;  
      WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(elementName, "", true, "", newPostbackUrl, false, true));  
  });  
  });
  &lt;/script&gt;
  </code></pre>