Client Side Deep Links with WebpackDevMiddleware 404s Client Side Deep Links with WebpackDevMiddleware 404s vue.js vue.js

Client Side Deep Links with WebpackDevMiddleware 404s


I was able to get around this using the status code pages middleware to handle all status codes and re-execute using the root path. This will cause the spa app to be served up for all status codes in the 400-599 range which is not quite what I want but gets me working again at least.

//setup spa routing for both dev and prodif (env.IsDevelopment()){  //force client side deep links to render the spa on 404s  app.UseStatusCodePagesWithReExecute("/");  app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {    HotModuleReplacement = true,     ProjectPath = Path.Combine(env.ContentRootPath, Configuration["ClientProjectPath"]),     ConfigFile = Path.Combine(env.ContentRootPath, Configuration["ClientProjectConfigPath"])  });}

Hopefully, this will help someone in the future that might be bumping up against this issue.