Title: html5 mode with mismatching base href causes "TypeError: Cannot read property 'replace' of undefined" error in location.js · Issue #13565 · angular/angular.js · GitHub
Open Graph Title: html5 mode with mismatching base href causes "TypeError: Cannot read property 'replace' of undefined" error in location.js · Issue #13565 · angular/angular.js
X Title: html5 mode with mismatching base href causes "TypeError: Cannot read property 'replace' of undefined" error in location.js · Issue #13565 · angular/angular.js
Description: Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js) If the tag does not match the actual href, $$parseLinkUrl will miss all the conditions ...
Open Graph Description: Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js) If the tag does not match the actual href, $$pa...
X Description: Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js) If the tag does not match the actual href, $$pa...
Opengraph URL: https://github.com/angular/angular.js/issues/13565
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"html5 mode with mismatching base href causes \"TypeError: Cannot read property 'replace' of undefined\" error in location.js","articleBody":"Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js)\n\nIf the \u003cbase href=\"xxx\"> tag does not match the actual href, $$parseLinkUrl will miss all the conditions and rewrittenUrl will not be defined, which means this.$$parse will not be called and $$absUrl will not be set.\n\nLater on line 902 (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js#L902), trimEmptyHash($location.absUrl()) will be called in a condition, which will end up having trimEmptyHash call .replace on undefined, so we end up halting with:\n\nTypeError: Cannot read property 'replace' of undefined\n","author":{"url":"https://github.com/jamlee1","@type":"Person","name":"jamlee1"},"datePublished":"2015-12-17T04:21:01Z","url":"https://github.com/angular/angular.js/issues/13565"}
| 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:432ed591-0e99-0b20-216a-da18e96b6b6d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACE6:340002:1128E5:174E42:6AFE45AF |
| html-safe-nonce | 2a1a407964b22d7e63fb8d73f7018de68fa748214d515b479733d8ea536dcd9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0U2OjM0MDAwMjoxMTI4RTU6MTc0RTQyOjZBRkU0NUFGIiwidmlzaXRvcl9pZCI6IjUxODI2NDQzNjg2Mzk0NDExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f7a598311041b8df959a8b7b96a34824229ea5895ab0e0fbbff051ab03e628b |
| hovercard-subject-tag | issue:122658391 |
| 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.js/13565/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50df3fbf49983b3629fd1a614b397e7e698a7ff8351521b458dc5644d5ba9198/angular/angular.js/issues/13565 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50df3fbf49983b3629fd1a614b397e7e698a7ff8351521b458dc5644d5ba9198/angular/angular.js/issues/13565 |
| og:image:alt | Looking at the latest version of location.js (https://github.com/angular/angular.js/blob/4412fe238f37f79a2017ee7b20ba089c0acd73e9/src/ng/location.js) If the tag does not match the actual href, $$pa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamlee1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| 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 | ce393ea11ad276623b946bc9663d3e7d6f564275 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width