René's URL Explorer Experiment


Title: $location.search() returns undefined when base href does not match URL · Issue #16241 · angular/angular.js · GitHub

Open Graph Title: $location.search() returns undefined when base href does not match URL · Issue #16241 · angular/angular.js

X Title: $location.search() returns undefined when base href does not match URL · Issue #16241 · angular/angular.js

Description: I'm submitting a ... bug report Current behavior: In our app's run function, $location.search() returns undefined. Expected / new behavior: $location.search() should return an object, as documented. Minimal reproduction of the problem wi...

Open Graph Description: I'm submitting a ... bug report Current behavior: In our app's run function, $location.search() returns undefined. Expected / new behavior: $location.search() should return an object, as documented...

X Description: I'm submitting a ... bug report Current behavior: In our app's run function, $location.search() returns undefined. Expected / new behavior: $location.search() should return an object, as do...

Opengraph URL: https://github.com/angular/angular.js/issues/16241

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$location.search() returns undefined when base href does not match URL","articleBody":"**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") -->\r\n- [x] bug report\r\n\r\n**Current behavior:**\r\n\r\nIn our app's `run` function, `$location.search()` returns `undefined`.\r\n\r\n**Expected / new behavior:**\r\n`$location.search()` should return an object, as documented.\r\n\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\n\r\nServe page at `https://localhost/foo/bar/`\r\n\r\ninclude tag `\u003cbase href=\"/baz/\">`\r\n\r\nUse HTML5 location mode.\r\n\r\nsee http://plnkr.co/edit/RRJMNjo6Viw1NbtNeWfr?p=preview\r\n\r\n**AngularJS version:** 1.5.10\r\n\r\n**Browser:** Chrome 61 | Firefox 57\r\n\r\n**Anything else:**\r\n\r\nOh, this may be a duplicate of #11223. That issue got sidetracked to a discussion of case-sensitivity and then marked as wontfix, but I think that was a tangent unrelated to making search() return properly.\r\n\r\nIn a way much like #14488 noted for $location.$$absUrl, the $location.$$search property may not be initialized before $location.search() is called.\r\n\r\nPerhaps the search() method needs to check to see if $$search is undefined, similar to how other functions check for a value for $$path or $$hash, or perhaps when $locationProvider.$get needs to *always* call $location.$$parse (which $location.$$parseLinkUrl declines to do in this condition).\r\n\r\nI also noticed that sometime *later* $location.search() would return properly; I suspect this is related to how $locationProvider.$get adds a watch to $rootScope, but the app's run function probably happens before that digest cycle.","author":{"url":"https://github.com/keturn","@type":"Person","name":"keturn"},"datePublished":"2017-09-25T01:33:00Z","url":"https://github.com/angular/angular.js/issues/16241"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:85a0c410-d8d5-d48c-ca7e-e615302af0ec
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA40:1D05B8:2D20E4:3FDF1B:6AFE0511
html-safe-nonce4c6dff02fc72a510f00700daf2db3ade6aa050fdcc2b254b871122070ccd7602
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTQwOjFEMDVCODoyRDIwRTQ6M0ZERjFCOjZBRkUwNTExIiwidmlzaXRvcl9pZCI6IjU5NzMyNDI3OTI5MzI4MTU1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac735528acd30210fddd32e0a4e2adb134659aad57cccadd8b46edbc7c8c926c56
hovercard-subject-tagissue:260132769
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/16241/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e98423f67195a76674c26a5b12a5b4485cb18b3dccb639b40da6798e747a6f28/angular/angular.js/issues/16241
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e98423f67195a76674c26a5b12a5b4485cb18b3dccb639b40da6798e747a6f28/angular/angular.js/issues/16241
og:image:altI'm submitting a ... bug report Current behavior: In our app's run function, $location.search() returns undefined. Expected / new behavior: $location.search() should return an object, as documented...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameketurn
hostnamegithub.com
expected-hostnamegithub.com
None86d46ece7c3d9b0562692f81a135cb55ad6a1c82c93ab1ac874d2f1b46b28958
turbo-cache-controlno-preview
go-importgithub.com/angular/angular.js git https://github.com/angular/angular.js.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id460078
octolytics-dimension-repository_nwoangular/angular.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id460078
octolytics-dimension-repository_network_root_nwoangular/angular.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5c18e6799976b7bc2f21178024289bb98edbcc85
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular.js/issues/16241#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F16241
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F16241
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular.js
Reloadhttps://github.com/angular/angular.js/issues/16241
Reloadhttps://github.com/angular/angular.js/issues/16241
Reloadhttps://github.com/angular/angular.js/issues/16241
angularhttps://github.com/angular
angular.jshttps://github.com/angular/angular.js
Codehttps://github.com/angular/angular.js
Issues389 (389)https://github.com/angular/angular.js/issues
Pull requests72 (72)https://github.com/angular/angular.js/pulls
Actionshttps://github.com/angular/angular.js/actions
Projectshttps://github.com/angular/angular.js/projects
Wikihttps://github.com/angular/angular.js/wiki
Security and qualityhttps://github.com/angular/angular.js/security
Insightshttps://github.com/angular/angular.js/insights
https://github.com/angular/angular.js
$location.search() returns undefined when base href does not match URLhttps://github.com/angular/angular.js/issues/16241#top
https://github.com/petebacondarwin
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
needs: investigationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
needs: more infohttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20more%20info%22
severity: inconvenienthttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20inconvenient%22
type: featurehttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
1.8.x - won't fixhttps://github.com/angular/angular.js/milestone/145
https://github.com/keturn
keturnhttps://github.com/keturn
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#issue-260132769
http://plnkr.co/edit/RRJMNjo6Viw1NbtNeWfr?p=previewhttp://plnkr.co/edit/RRJMNjo6Viw1NbtNeWfr?p=preview
#11223https://github.com/angular/angular.js/issues/11223
#14488https://github.com/angular/angular.js/pull/14488
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#issuecomment-331808417
the docshttps://docs.angularjs.org/guide/$location#base-href-constraints
gkalpakhttps://github.com/gkalpak
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
needs: investigationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
needs: more infohttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20more%20info%22
severity: inconvenienthttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20inconvenient%22
type: featurehttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#event-1263197797
gkalpakhttps://github.com/gkalpak
Purgatoryhttps://github.com/angular/angular.js/milestone/35
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#event-1263197925
https://github.com/keturn
keturnhttps://github.com/keturn
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#issuecomment-331942388
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#issuecomment-331982982
gkalpakhttps://github.com/gkalpak
Purgatoryhttps://github.com/angular/angular.js/milestone/35
1.7.0https://github.com/angular/angular.js/milestone/128
on Sep 25, 2017https://github.com/angular/angular.js/issues/16241#event-1264360346
petebacondarwinhttps://github.com/petebacondarwin
on Feb 5, 2018https://github.com/angular/angular.js/issues/16241#event-1458680387
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Feb 26, 2018https://github.com/angular/angular.js/issues/16241#issuecomment-368616385
petebacondarwinhttps://github.com/petebacondarwin
1.7.0https://github.com/angular/angular.js/milestone/128
1.6.10https://github.com/angular/angular.js/milestone/143
on Feb 26, 2018https://github.com/angular/angular.js/issues/16241#event-1492778015
petebacondarwinhttps://github.com/petebacondarwin
1.6.10https://github.com/angular/angular.js/milestone/143
1.7.xhttps://github.com/angular/angular.js/milestone/144
on May 2, 2018https://github.com/angular/angular.js/issues/16241#event-1606154496
petebacondarwinhttps://github.com/petebacondarwin
1.7.xhttps://github.com/angular/angular.js/milestone/144
1.7.x - won't fixhttps://github.com/angular/angular.js/milestone/145
on Sep 19, 2018https://github.com/angular/angular.js/issues/16241#event-1855902128
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular.js/issues/16241
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular.js/issues/16241
petebacondarwinhttps://github.com/petebacondarwin
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
needs: investigationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
needs: more infohttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22needs%3A%20more%20info%22
severity: inconvenienthttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20inconvenient%22
type: featurehttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
1.8.x - won't fixNo due datehttps://github.com/angular/angular.js/milestone/145
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.