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

ng serve url rewrite #2412

Closed
denkomanceski opened this issue Sep 29, 2016 · 4 comments
Closed

ng serve url rewrite #2412

denkomanceski opened this issue Sep 29, 2016 · 4 comments

Comments

@denkomanceski
Copy link

denkomanceski commented Sep 29, 2016

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

@Thiago-Medeiros
Copy link

Wich server? If apache rewrite everything to index.html

@denkomanceski
Copy link
Author

I assume its a express server.. its the server that ng serve uses at background

@filipesilva
Copy link
Contributor

Duplicate of #2168

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants