Title: Broken routerLink on recompile when used with Ivy · Issue #32388 · angular/angular · GitHub
Open Graph Title: Broken routerLink on recompile when used with Ivy · Issue #32388 · angular/angular
X Title: Broken routerLink on recompile when used with Ivy · Issue #32388 · angular/angular
Description: 🐞 bug report link The routerLink breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable. This works correctly when Ivy is turned off. Affected Package I hope the issu...
Open Graph Description: 🐞 bug report link The routerLink breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable. This works correctly when Ivy is turn...
X Description: 🐞 bug report <a routerLink="hiya">link</a> The routerLink breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable. This works corr...
Opengraph URL: https://github.com/angular/angular/issues/32388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Broken routerLink on recompile when used with Ivy","articleBody":"# 🐞 bug report\r\n\r\n```html\r\n\u003ca routerLink=\"hiya\">link\u003c/a>\r\n```\r\nThe `routerLink` breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable.\r\n\r\nThis works correctly when Ivy is turned off.\r\n\r\n### Affected Package\r\nI hope the issue may be related to @angular/router or may be Ivy\r\n\r\n### Description\r\n\r\nI put the `\u003ca routerLink=\"..\" ..` in a component inside a lazyloaded module. When we stop the server and `npm start` again, this works correctly. But again fails on the next compile-on-save.\r\n\r\nI turned off the Ivy flag and everything works fine. So this may be related to Ivy.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nI was following the [lazy-loading-ngmodules guide](https://angular.io/guide/lazy-loading-ngmodules).\r\n\r\nA very minimal zip is attached here (without node_modules).\r\n[broken-routerLink.zip](https://github.com/angular/angular/files/3554413/broken-routerLink.zip)\r\n\r\n## 🔥 Exception or Error\r\n\r\nNo errors are shown.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.3.1\r\nNode: 10.16.2\r\nOS: linux x64\r\nAngular: 8.2.4\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.803.1\r\n@angular-devkit/build-angular 0.803.1\r\n@angular-devkit/build-optimizer 0.803.1\r\n@angular-devkit/build-webpack 0.803.1\r\n@angular-devkit/core 8.3.1\r\n@angular-devkit/schematics 8.3.1\r\n@angular/cli 8.3.1\r\n@ngtools/webpack 8.3.1\r\n@schematics/angular 8.3.1\r\n@schematics/update 0.803.1\r\nrxjs 6.4.0\r\ntypescript 3.5.3\r\nwebpack 4.39.2\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/vajahath","@type":"Person","name":"vajahath"},"datePublished":"2019-08-29T07:48:33Z","url":"https://github.com/angular/angular/issues/32388"}
| 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:be4141cd-bca9-4a56-fbf7-17e1a7cbb753 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EB8:31B4CC:16CEEF7:1DFFD22:6B012EF2 |
| html-safe-nonce | 6ec626cac4579cc09e9b4a8563a27fdff574ce550ee39766503fb69286d85b1b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUI4OjMxQjRDQzoxNkNFRUY3OjFERkZEMjI6NkIwMTJFRjIiLCJ2aXNpdG9yX2lkIjoiMTAzODYyOTI5MTMyOTQwMDU2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 36d787564dab9e19bfa8d9375bd846cc811e52b4d7a714a8519853285d713bca |
| hovercard-subject-tag | issue:486796043 |
| 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/32388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97431a07310bb91c8d34aae9c0617b83467ae7df2ddc89509329808eedca3b56/angular/angular/issues/32388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97431a07310bb91c8d34aae9c0617b83467ae7df2ddc89509329808eedca3b56/angular/angular/issues/32388 |
| og:image:alt | 🐞 bug report link The routerLink breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable. This works correctly when Ivy is turn... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vajahath |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width