-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng serve url rewrite #2412
Comments
Wich server? If apache rewrite everything to index.html |
I assume its a express server.. its the server that |
Duplicate of #2168 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Its a simple problem, I am using normal (html5) route strategy and not hashtag strategy, and when I go to a url which has some dynamic param (/archetype/display/:archetypeId) it works fine but when the server refreshes the page I get
Cannot GET /archetype/display/openEHR-EHR-CLUSTER.infusion_details.v1.0.0
.I think the server needs to handle this so angular will pick up and resolve the route?
In the app I have set up
<base href="/">
, I also tried {provide: APP_BASE_HREF, useValue: '/'} in the root module still nothing..Edit: If the route is a number /archetype/display/123 the page loads fine but of course the server cannot find the item
Edit2: It seems that it doesnt work because i have a dot (.) in the dynamic parameter. If I remove the dot it works fine. Probably the server thinks its some file extension or something maybe?
Regards
The text was updated successfully, but these errors were encountered: