title: Return to previous page in ASP.Net Core MVC
body: <p>From my client detail page I have a button to edit the client record which redirects to an edit page. I have a "return to client detail" link on the edit page which I want to redirect the user back to the previous client detail page.</p>
  
  <pre><code>&lt;a asp-controller="Client" asp-action="Detail" asp-route-id="@Model.ClientID"&gt;Return to client detail&lt;/a&gt;
  </code></pre>
  
  <p>Currently this works as expected but takes extra time as it reloads the detail page from scratch (ie running all the various db queries again). Since the user is really just cancelling the edit without any changes to the state of the client I am wanting to return the user to the previous detail page without having to go through the controller action again.</p>
  
  <p>Essentially I am wanting to simulate the browser back button (to improve responsiveness) but i'm not sure how to implement this or whether it's good practice to do so. Some guidance would be appreciated.</p>
  
  <p>Thanks</p>