title: Javascript file not loaded after redirect?
body: <p>I have an ASP.NET Core web app and noticed that my custom JavaScript file is not being loaded after a redirect.  I include script file at the bottom of the _layout.cshtml page.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="container body-content"&gt;
      @RenderBody()
    &lt;/div&gt;
  
    @RenderSection("Scripts", required: false)
  &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;script src="js/CustomScripts.js"&gt;&lt;/script&gt;  @* NOT LOADED AFTER REDIRECT PAGE IS LOADED *@
  </code></pre>
  
  <p>My controller</p>
  
  <pre><code>public IActionResult Edit(EnrollmentsModel enrollmentsModel)
  {
    var enrollment = _smcdService.GetEnrollmentModel(nCustId, nAccId, nMeterId, nSMCDId);
  
    return RedirectToAction("Edit", "Enrollment", enrollment);
  }
  </code></pre>
  
  <p>My Edit page display the correct data but the 'CustomScripts.js' file isn't loaded.  My other web pages load the Javascript file but they are not redirected.  Thank you for your help!</p>