title: Exception: Correlation failed. Unknown location
body: <p>After identityserver authentication when it redirects to my application, it gives </p>
  
  <p><strong>Exception: Correlation failed.
  Unknown location</strong></p>
  
  <p>Now because I am using SPA. This route is definitely not there. But question is how do I define one. And what should I do there. </p>
  
  <p>I have used hybrid flow of Identityserver. </p>
  
  <p><a href="https://localhost:44375/signin-oidc" rel="nofollow noreferrer">https://localhost:44375/signin-oidc</a></p>
  
  <p>I have referred following.</p>
  
  <p><a href="https://github.com/IdentityServer/IdentityServer4.Samples/blob/master/Clients/src/MvcHybridAutomaticRefresh/Startup.cs" rel="nofollow noreferrer">https://github.com/IdentityServer/IdentityServer4.Samples/blob/master/Clients/src/MvcHybridAutomaticRefresh/Startup.cs</a></p>
  
  <p>But in above link there is a SPA middleware. which is VueCliMiddleWare. (And to me that is creating issue. routes.)</p>
  
  <p>(For Rest of the routes it returns index file as per following code. Only this <strong>/oidc-client</strong> path is not working.)</p>
  
  <pre><code>     app.Use(async (context, next) =&gt;
          {
              await next();
              if (context.Response.StatusCode == 404 &amp;&amp; !Path.HasExtension(context.Request.Path.Value))
              {
                  context.Request.Path = "/index.html";
                  await next();
              }
          })
  .UseDefaultFiles(new DefaultFilesOptions { DefaultFileNames = new List&lt;string&gt; { "index.html" } });
  </code></pre>
  
  <p>If I define following</p>
  
  <pre><code>routes.MapSpaFallbackRoute(
                      name: "spa - fallback",
                      defaults: new { controller = "CatchAll", action = "Index" });
  </code></pre>
  
  <p>Then this route redirects to that controller. But there I am not able to return index file.</p>