Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Side Deep Links with WebpackDevMiddleware 404s #10002

Closed
NotMyself opened this issue May 6, 2019 · 5 comments
Closed

Client Side Deep Links with WebpackDevMiddleware 404s #10002

NotMyself opened this issue May 6, 2019 · 5 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question

Comments

@NotMyself
Copy link

NotMyself commented May 6, 2019

I have an asp.net core app that is using spa services to serve up a vue.js client-side application. When running in Development mode with the WebpackDevMiddleware enabled, all client-side deep links return a 404.

How can I configure the fall back routes for the WepackDevMiddleware?

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repository: https://github.com/NotMyself/bivrost.git
  2. Switch branches: git checkout adding-client-side-routing-and-storage
  3. Open in Visual Studio Code
  4. Comment out lines 35-36 in Startup.cs to prevent TwitchBot from trying to connect.
  5. Run the .NET Core Launch (web) debugger
  6. Note that the route: http://localhost/ serves up the vue app with HMR enabled
  7. Enter the URL directly into the address bar: http://localhost/overlays/chat
  8. Note the app throws a 404.

Expected behavior

I expect the spa application to be served up on client side routes.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 6, 2019
@SteveSandersonMS SteveSandersonMS added area-blazor Includes: Blazor, Razor Components and removed area-blazor Includes: Blazor, Razor Components labels May 7, 2019
@mkArtakMSFT mkArtakMSFT added this to the 3.0.0-preview7 milestone May 9, 2019
@mkArtakMSFT
Copy link
Member

@ryanbrandenburg can you please look into this? Thanks!

@NotMyself
Copy link
Author

Feel free to reach out to me if you need anything @ryanbrandenburg. I have kind of moved on with development, but the branch is the same.

@mkArtakMSFT mkArtakMSFT removed this from the 3.0.0-preview7 milestone May 10, 2019
@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @NotMyself.
After looking into this a bit more it seems this is purely a question which you'll get a faster answer from StackOverflow using the asp.net-core-mvc tag.

@NotMyself
Copy link
Author

Giving it a try. Will see what happens. If anyone googles and finds my question here, my StackOverflow question can be found here.

@NotMyself
Copy link
Author

Repository with minimum reproduction of the problem is located here.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates question
Projects
None yet
Development

No branches or pull requests

5 participants