{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/26993","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/26993/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/26993/comments","events_url":"https://api.github.com/repos/angular/angular/issues/26993/events","html_url":"https://github.com/angular/angular/issues/26993","id":378496929,"node_id":"MDU6SXNzdWUzNzg0OTY5Mjk=","number":26993,"title":"(Router) Annoying redirect to home when some error occurs with lazy loaded modules","user":{"login":"iget-master","id":9434959,"node_id":"MDQ6VXNlcjk0MzQ5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/9434959?v=4","gravatar_id":"","url":"https://api.github.com/users/iget-master","html_url":"https://github.com/iget-master","followers_url":"https://api.github.com/users/iget-master/followers","following_url":"https://api.github.com/users/iget-master/following{/other_user}","gists_url":"https://api.github.com/users/iget-master/gists{/gist_id}","starred_url":"https://api.github.com/users/iget-master/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iget-master/subscriptions","organizations_url":"https://api.github.com/users/iget-master/orgs","repos_url":"https://api.github.com/users/iget-master/repos","events_url":"https://api.github.com/users/iget-master/events{/privacy}","received_events_url":"https://api.github.com/users/iget-master/received_events","type":"User","site_admin":false},"labels":[{"id":375500771,"node_id":"MDU6TGFiZWwzNzU1MDA3NzE=","url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/83","html_url":"https://github.com/angular/angular/milestone/83","labels_url":"https://api.github.com/repos/angular/angular/milestones/83/labels","id":3143880,"node_id":"MDk6TWlsZXN0b25lMzE0Mzg4MA==","number":83,"title":"needsTriage","description":"Milestone for all issues that haven't been triaged yet","creator":{"login":"ocombe","id":265378,"node_id":"MDQ6VXNlcjI2NTM3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/265378?v=4","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"open_issues":197,"closed_issues":1178,"state":"open","created_at":"2018-02-26T14:22:18Z","updated_at":"2018-12-28T17:28:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-11-07T22:29:20Z","updated_at":"2018-12-28T17:55:58Z","closed_at":"2018-11-13T23:35:56Z","author_association":"NONE","body":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by @angular/router\r\n\r\n### Is this a regression?\r\n\r\nNo.\r\n\r\n### Description\r\n\r\nAlways that some error occurs on some page, the angular redirects the page to the root.\r\n\r\nThe problem is that when you are developing, this is annoying because always that you miss some module, you do:\r\n\r\n1. Try your url: `localhost:4200/my/route/that/may/be/complex`\r\n2. Angular will fail, console.log the reason, then redirect your to `localhost:4200`\r\n3. Now I go to the code, fix the issue, for example a missing module\r\n4. When I go back to the browser, I'm not on that long route, because angular decided to redirect me back to the root.\r\n5. I will need to type all that long URL again, and again, and again. \r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://angular-issue-repro2-mc6ujx.stackblitz.io\r\n\r\n## 🔥 Exception or Error\r\n\r\nNone.\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n<pre><code>\r\nAngular CLI: 7.0.4\r\nNode: 8.12.0\r\nOS: linux x64\r\nAngular: 7.0.2\r\n... animations, cdk, common, compiler, compiler-cli, core, forms\r\n... http, language-service, material, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.10.4\r\n@angular-devkit/build-angular     0.10.4\r\n@angular-devkit/build-optimizer   0.10.4\r\n@angular-devkit/build-webpack     0.10.4\r\n@angular-devkit/core              7.0.4\r\n@angular-devkit/schematics        7.0.4\r\n@angular/cli                      7.0.4\r\n@ngtools/webpack                  7.0.4\r\n@schematics/angular               7.0.4\r\n@schematics/update                0.10.4\r\nrxjs                              6.3.3\r\ntypescript                        3.1.6\r\nwebpack                           4.19.1\r\n</code></pre>\r\n\r\n**Anything else relevant?**\r\n\r\nNo"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/450400555","html_url":"https://github.com/angular/angular/issues/26993#issuecomment-450400555","issue_url":"https://api.github.com/repos/angular/angular/issues/26993","id":450400555,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQwMDU1NQ==","user":{"login":"JurajMlich","id":6961904,"node_id":"MDQ6VXNlcjY5NjE5MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6961904?v=4","gravatar_id":"","url":"https://api.github.com/users/JurajMlich","html_url":"https://github.com/JurajMlich","followers_url":"https://api.github.com/users/JurajMlich/followers","following_url":"https://api.github.com/users/JurajMlich/following{/other_user}","gists_url":"https://api.github.com/users/JurajMlich/gists{/gist_id}","starred_url":"https://api.github.com/users/JurajMlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JurajMlich/subscriptions","organizations_url":"https://api.github.com/users/JurajMlich/orgs","repos_url":"https://api.github.com/users/JurajMlich/repos","events_url":"https://api.github.com/users/JurajMlich/events{/privacy}","received_events_url":"https://api.github.com/users/JurajMlich/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T17:55:58Z","updated_at":"2018-12-28T17:55:58Z","author_association":"NONE","body":"@jasonaden why would this be expected behavior? \r\n\r\n**Workaround for those experiencing it:**\r\nnode_modules/@angular/router/fesm5/router.js comment line 3973:\r\n`_this.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);`"}}
{"actor":{"display_login":"JurajMlich"}}