Title: routing doesnt work after deployment in angular2 · Issue #2885 · angular/angular-cli · GitHub
Open Graph Title: routing doesnt work after deployment in angular2 · Issue #2885 · angular/angular-cli
X Title: routing doesnt work after deployment in angular2 · Issue #2885 · angular/angular-cli
Description: angular-cli: 1.0.0-beta.18 node: 6.4.0 os: win32 x64 Windows 10 I have created an angular2 app & deployed it successfully. app starts correctly after taking some time to load & then I am able to navigate to different components. but when...
Open Graph Description: angular-cli: 1.0.0-beta.18 node: 6.4.0 os: win32 x64 Windows 10 I have created an angular2 app & deployed it successfully. app starts correctly after taking some time to load & then I am able to na...
X Description: angular-cli: 1.0.0-beta.18 node: 6.4.0 os: win32 x64 Windows 10 I have created an angular2 app & deployed it successfully. app starts correctly after taking some time to load & then I am ab...
Opengraph URL: https://github.com/angular/angular-cli/issues/2885
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"routing doesnt work after deployment in angular2","articleBody":"\u003e angular-cli: 1.0.0-beta.18\n\u003e node: 6.4.0\n\u003e os: win32 x64 Windows 10\n\nI have created an angular2 app \u0026 deployed it successfully.\n\napp starts correctly after taking some time to load \u0026 then I am able to navigate to different components.\n\nbut when I put direct address in URL as :\n\n```\nwww.sample.com/about\n```\n\nit says 404 error.\n\neven when I am creating bundle using `ng build --prod` , it creates `dist` folder correctly \u0026 I am able to navigate to different components using links only.\n\nbut I cant access components directly from the URL in my local system also.\n\nI am using `http-server`.\n\nare there any extra configurations required to make it work?\n","author":{"url":"https://github.com/Bhushan001","@type":"Person","name":"Bhushan001"},"datePublished":"2016-10-25T18:38:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":29},"url":"https://github.com/2885/angular-cli/issues/2885"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc2bc6fb-1693-0097-da6c-aa344f3c4ecf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 957E:5BCF5:6089308:7C41524:6976783D |
| html-safe-nonce | 301af1d2d7b849934b2b8e0e74fe66d9cf3559c807206f77b972152f36ffbc16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTdFOjVCQ0Y1OjYwODkzMDg6N0M0MTUyNDo2OTc2NzgzRCIsInZpc2l0b3JfaWQiOiI3MjEwMzMyOTkxNjgxNjI0MTI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7b8d6585dc6b02a36fab678c92a4802768dda3020751dad085d55ee07a85cfcd |
| hovercard-subject-tag | issue:185199323 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2885/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1131e85b7ee5b9778e3a5a26d7684990a844f07697edfc6d6bf17c4ff40e7faa/angular/angular-cli/issues/2885 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1131e85b7ee5b9778e3a5a26d7684990a844f07697edfc6d6bf17c4ff40e7faa/angular/angular-cli/issues/2885 |
| og:image:alt | angular-cli: 1.0.0-beta.18 node: 6.4.0 os: win32 x64 Windows 10 I have created an angular2 app & deployed it successfully. app starts correctly after taking some time to load & then I am able to na... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bhushan001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width