Title: using deploy-url and base-href yields in wrong assets path · Issue #6730 · angular/angular-cli · GitHub
Open Graph Title: using deploy-url and base-href yields in wrong assets path · Issue #6730 · angular/angular-cli
X Title: using deploy-url and base-href yields in wrong assets path · Issue #6730 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.1.1 node: 8.1.1 os: darwin x64 Repro steps. create a new application and use a --ba...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.1.1 node: 8.1.1 os: darwin x64 Repro steps....
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.1.1 node: 8.1.1 os: darwin x64 Repro ste...
Opengraph URL: https://github.com/angular/angular-cli/issues/6730
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"using deploy-url and base-href yields in wrong assets path","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n@angular/cli: 1.1.1\r\nnode: 8.1.1\r\nos: darwin x64\r\n\r\n### Repro steps.\r\ncreate a new application and use a `--base-href=/ui/` and `--deploy-url=/ui/` while having a stylesheet of:\r\n```\r\n.login-body {\r\n background: rgba(0, 0, 0, 0) url(\"/assets/images/bg.png\") no-repeat scroll 0 0 / cover;\r\n}\r\n```\r\nThe output will then be `.login-body{background:transparent url(/ui/ui/assets/images/bg.png) no-repeat scroll 0 0/cover}` in both, `build --prod --deploy-url=/ui/ --base-href=/ui/` and on `serve --deploy-url=/ui/ --base-href=/ui/`\r\n\r\n### Mention any other details that might be useful.\r\nActually if I remove one of the things either `base-href` and `deploy-url` it would work, however if I omit `base-href` routing will actually re-initialize the application everytime I open a `[href]` or `ng-href` link (hybrid app). if I omit `deploy-url` i will get 404 well I might make it work without deploy-url since I proxy the ng serve in my application and I can strip the path, but I still think that setting both shouldn't end in a assets path of `/ui/ui/`.\r\nWhat's even more strange is that the `$icon-font-path` and `$fa-font-path` of font-awesome and boostrap are working correctly and don't double add a `/ui/`\r\n\r\nBasically I think that without `--deploy-url` I can fully use my application since angular-cli omits relative url's so the script path is `ui/...`. However it would've been great to use absolute-urls for everything which I can enforce with `--deploy-url`.","author":{"url":"https://github.com/schmitch","@type":"Person","name":"schmitch"},"datePublished":"2017-06-19T07:13:04Z","url":"https://github.com/angular/angular-cli/issues/6730"}
| 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:067bf315-efa7-c739-7474-45e2e4abd39d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DDC:1F87:E923A2:122E4B0:6B0241C0 |
| html-safe-nonce | 8603c28e7fb55ac33fe46a429af6e5c1115a3a0947bf6450cb59bf58c050333a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RERDOjFGODc6RTkyM0EyOjEyMkU0QjA6NkIwMjQxQzAiLCJ2aXNpdG9yX2lkIjoiNzM5NTcyMjY4NjY0ODk1OTQyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7967537b86a7e0e3eda5267d629a8b8e85b5c0882752c2372483818e7efc6caf |
| hovercard-subject-tag | issue:236799112 |
| 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/6730/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50f0c76e37a841c7f10721b79f5da909dbd64caf31e00a96e666a5bfe5f5979e/angular/angular-cli/issues/6730 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50f0c76e37a841c7f10721b79f5da909dbd64caf31e00a96e666a5bfe5f5979e/angular/angular-cli/issues/6730 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.1.1 node: 8.1.1 os: darwin x64 Repro steps.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schmitch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width