-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Can't navigate directly to route when pushState is true in Aurelia js, react js with backend server as .net 4.5 #664
Comments
I'm having a similar issue. Just following along with the official Contact Manager Tutorial, I can click on a Contact and the router works, loading the component, and URL changes to: http://localhost:8080/contacts/1 But then if I refresh the browser, I get errors like this: It's looking in /contacts/css, which doesn't exist!! So the router with pushState is not working properly on local, using the default webpack dev server, etc, config that the Aurelia CLI generated for me. Never a good sign when you can't even get through the official tutorial without running into issues, but even so, Aurelia looks so awesome I'd love to find a way to use it... (and maybe I did something dumb?) |
@3cp I'm not sure if there's something that could affect a freshly generated project, could you help have a look with this? |
@Sidewinder1138 I am following the tutorial and could not reproduce your error. Could you push your project to GitHub for us to check? |
@rick0907 I am not a .net user. But if you still need help, go to https://discourse.aurelia.io for help, there are many .net users around to help. |
@rick0907 please let me know it you get a solution for this application working locally without any issue but after deploying it to the server, same URL giving me 404 on refresh or direct hit. we also facing the same issues which is not sloved |
I have a below route configuration:
config.options.pushState = true;
config.options.root = "/";
config.options.hashChange = false;
url: applicationdomain.../displayData
this application working locally without any issue but after deploying it to the server, same URL giving me 404 on refresh or direct hit.
I read on the net that we need to configure the server to support the push state. however, I couldn't figure out what exactly I need to configure on .Net 4.5 server.
The text was updated successfully, but these errors were encountered: