Title: Generated output in ngsw.json is wrong · Issue #23422 · angular/angular · GitHub
Open Graph Title: Generated output in ngsw.json is wrong · Issue #23422 · angular/angular
X Title: Generated output in ngsw.json is wrong · Issue #23422 · angular/angular
Description: I'm submitting a... [x] Bug report [ ] Feature request Current behavior When run the build script with the inline argument of --base-href /current/ and in the ngsw.json file use the absolute path for the files, it produces the path /curr...
Open Graph Description: I'm submitting a... [x] Bug report [ ] Feature request Current behavior When run the build script with the inline argument of --base-href /current/ and in the ngsw.json file use the absolute path f...
X Description: I'm submitting a... [x] Bug report [ ] Feature request Current behavior When run the build script with the inline argument of --base-href /current/ and in the ngsw.json file use the absolute pa...
Opengraph URL: https://github.com/angular/angular/issues/23422
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generated output in ngsw.json is wrong","articleBody":"## I'm submitting a...\r\n\u003cpre>\u003ccode>\r\n[x] Bug report \r\n[ ] Feature request\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nWhen run the build script with the inline argument of `--base-href /current/` and in the `ngsw.json` file use the absolute path for the files, it produces the path `/current/index.html` in the built `ngsw.json`. Using of the relative path in the `ngsw.json` does not help.\r\n\r\n## Expected behavior\r\nEither using the relative path in the `ngsw.json` or generating the output due to the `--base-href` value. \r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 5.0.0\r\n@angular/service-worker: 5.2.10\r\n\r\nBrowser:\r\n- [x] Chrome (desktop) version 65\r\nFor Tooling issues:\r\n- Node version: 8.9.4\r\n- Platform: Windows\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/zizizi17","@type":"Person","name":"zizizi17"},"datePublished":"2018-04-17T16:57:02Z","url":"https://github.com/angular/angular/issues/23422"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:81529228-9be9-f7b3-c6d4-b48a8fb9911b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99D2:37820D:110E318:16B87CA:6B01085A |
| html-safe-nonce | 8a64709dd309bacf3442a0e48d5718dfdfdd3918f58d4d53d03f2022ea7a0c2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUQyOjM3ODIwRDoxMTBFMzE4OjE2Qjg3Q0E6NkIwMTA4NUEiLCJ2aXNpdG9yX2lkIjoiNjU3NTY2MTAzNTgxMjg4MjUyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 532fa30fc898f80c4d029b642bbfb2e46228becffe3d88b33a3af0b003907ce0 |
| hovercard-subject-tag | issue:315148165 |
| 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/23422/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9853d329f6bbc5a8a05242a238926e8dafcecb0fe3c6803ed11f078052803f9e/angular/angular/issues/23422 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9853d329f6bbc5a8a05242a238926e8dafcecb0fe3c6803ed11f078052803f9e/angular/angular/issues/23422 |
| og:image:alt | I'm submitting a... [x] Bug report [ ] Feature request Current behavior When run the build script with the inline argument of --base-href /current/ and in the ngsw.json file use the absolute path f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zizizi17 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width