title: Sweet Alert Redirection to URL using ASP.NET Core (default Ok button)
body: <p>The below <code>Javascript</code> function still fails in pointing to the relevant <code>URL</code>, although I cannot see any abnomaly. Hence a puzzlement leading to this post.</p>
  <pre><code>if(msg) {
  if (msg.provider == &quot;sweetAlert&quot;) {
      swal.fire({
          title: msg.title,
          text: msg.text,
          icon: msg.icon,
          timer: 5000,
          confirmButtonColor: &quot;black&quot;,
          BorderColor: &quot;white&quot;
      }, function(){
          var url ='@Url.Action(&quot;Action&quot;,&quot;Controller&quot;)';
          window.location.href = url;
      });
  } 
  </code></pre>
  <p>Thus, any relevant feedback would highly be appreciated.</p>
  <p>Thanks in advance.
  Best</p>