{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/14522","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/14522/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/14522/comments","events_url":"https://api.github.com/repos/angular/angular/issues/14522/events","html_url":"https://github.com/angular/angular/issues/14522","id":207972241,"number":14522,"title":"createUrlTree ignoring <base href=.. />?","user":{"login":"wannadream","id":6989212,"avatar_url":"https://avatars.githubusercontent.com/u/6989212?v=3","gravatar_id":"","url":"https://api.github.com/users/wannadream","html_url":"https://github.com/wannadream","followers_url":"https://api.github.com/users/wannadream/followers","following_url":"https://api.github.com/users/wannadream/following{/other_user}","gists_url":"https://api.github.com/users/wannadream/gists{/gist_id}","starred_url":"https://api.github.com/users/wannadream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wannadream/subscriptions","organizations_url":"https://api.github.com/users/wannadream/orgs","repos_url":"https://api.github.com/users/wannadream/repos","events_url":"https://api.github.com/users/wannadream/events{/privacy}","received_events_url":"https://api.github.com/users/wannadream/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-16T00:15:29Z","updated_at":"2017-02-16T07:52:54Z","closed_at":null,"body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\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\n\r\nI am using Router.createUrlTree() to generate URL for pop up window. However, the URL generated does not include <base href=\"..\" />.\r\n\r\nFor example, my app file structure is like this:\r\n--/\r\n--/cloud/\r\n--/other/\r\n\r\nAll code for Angular application is under cloud folder so I put <base href=\"/cloud\" /> in index.html.\r\nIn browser, I will use http:/hostname/cloud to access my application.\r\nHowever, Router.createUrlTree() generates URL without base href setting, which is like http:/hostname/home/detail\r\n\r\n<!-- Describe how the bug manifests. -->\r\n\r\n**Expected behavior**\r\n\r\nI am expecting the generated URL should be http://hostname/cloud/home/detail\r\n\r\n<!-- Describe what the behavior would be without the bug. -->\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n<!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example, \r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n-->\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n<!-- Describe the motivation or the concrete use case -->\r\n\r\n**Please tell us about your environment:**\r\n\r\nWindows 10, Visual Studio 2015/2017RC, NPM, IIS\r\n\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n\r\n* **Angular version:** 2.0.0.0\r\n\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\n* **Browser:** Chrome 56.0.2924.87\r\n\r\n<!-- All browsers where this could be reproduced -->\r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/280258114","html_url":"https://github.com/angular/angular/issues/14522#issuecomment-280258114","issue_url":"https://api.github.com/repos/angular/angular/issues/14522","id":280258114,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T07:52:54Z","updated_at":"2017-02-16T07:52:54Z","body":"Anyway I would say it's by design. `createUrlTree` has nothing to do with base href or folder structure."}}
{"actor":{"display_login":"DzmitryShylovich"}}