{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2224","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2224/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2224/events","html_url":"https://github.com/angular/angular-cli/issues/2224","id":177808325,"number":2224,"title":"ng build --prod hashlocation #true/","user":{"login":"Vandersteen","id":9284334,"avatar_url":"https://avatars.githubusercontent.com/u/9284334?v=3","gravatar_id":"","url":"https://api.github.com/users/Vandersteen","html_url":"https://github.com/Vandersteen","followers_url":"https://api.github.com/users/Vandersteen/followers","following_url":"https://api.github.com/users/Vandersteen/following{/other_user}","gists_url":"https://api.github.com/users/Vandersteen/gists{/gist_id}","starred_url":"https://api.github.com/users/Vandersteen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vandersteen/subscriptions","organizations_url":"https://api.github.com/users/Vandersteen/orgs","repos_url":"https://api.github.com/users/Vandersteen/repos","events_url":"https://api.github.com/users/Vandersteen/events{/privacy}","received_events_url":"https://api.github.com/users/Vandersteen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T14:57:33Z","updated_at":"2016-09-19T14:57:33Z","closed_at":null,"body":"```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior** \r\nUsing ng build --prod --baseHref /my/href/ together with `{userHash: true}` produces url's with `domain.com/my/href/true/#/` (note **/true#/**), all routes are 'prefixed' with true/#/\r\n\r\nIt works as expected with `ng serve`\r\n\r\n\r\n**Expected behavior**\r\nUrl: `domain.com/my/href/#/`\r\n\r\n**Reproduction of the problem**\r\n\r\n* RouterModule.forRoot(routes, {useHash: true})\r\n* ng build --prod --baseHref /my/href/\r\n\r\n**Please tell us about your environment:**\r\n\r\n    \"@angular/common\": \"2.0.0\",\r\n    \"@angular/compiler\": \"2.0.0\",\r\n    \"@angular/core\": \"2.0.0\",\r\n    \"@angular/forms\": \"2.0.0\",\r\n    \"@angular/http\": \"2.0.0\",\r\n    \"@angular/platform-browser\": \"2.0.0\",\r\n    \"@angular/platform-browser-dynamic\": \"2.0.0\",\r\n    \"@angular/router\": \"3.0.0\",\r\n\r\n\r\n    \"angular-cli\": \"1.0.0-beta.14\"\r\n\r\n* **Angular version:** 2.0.0-rc.5 && 2.0.0\r\n\r\n* **Browser:** [Chrome | Safari ] \r\n<!-- All browsers where this could be reproduced -->\r\n \r\n* **Language:** [TypeScript 2.0.0]\r\n \r\n* **Node (for AoT issues):** `node --version` =   v6.3.0\r\n\r\n\r\n**Generated index.html**\r\n\r\n```\r\n<!doctype html>\r\n<html>\r\n<head>\r\n  <meta charset=\"utf-8\">\r\n  <title>My App</title>\r\n  <base href=\"true\"> <--------------------------------------------------------\r\n\r\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n  <link rel=\"icon\" type=\"image/x-icon\" href=\"favicon.ico\">\r\n  \r\n</head>\r\n<body>\r\n  <app-root>Loading...</app-root>\r\n<script type=\"text/javascript\" src=\"inline.js\"></script><script type=\"text/javascript\" src=\"styles.425d32a198d4b5d25a23.bundle.js\"></script><script type=\"text/javascript\" src=\"main.0f0a242949799eda6711.bundle.js\"></script></body>\r\n</html>\r\n\r\n```"}}
{"actor":{"display_login":"Vandersteen"}}