René's URL Explorer Experiment


Title: $location.absUrl() returns undefined with base href and html5Mode · Issue #11091 · angular/angular.js · GitHub

Open Graph Title: $location.absUrl() returns undefined with base href and html5Mode · Issue #11091 · angular/angular.js

X Title: $location.absUrl() returns undefined with base href and html5Mode · Issue #11091 · angular/angular.js

Description: Running Angular 1.3.13 base href to load all assets from a specific subdirectory enable html 5 mode // remove hash /#/ $locationProvider.html5Mode(true); Routes are setup like this: $routeProvider .when('/', {...

Open Graph Description: Running Angular 1.3.13 base href to load all assets from a specific subdirectory enable html 5 mode // remove hash /#/ $locationProvider.html5Mode(true); Routes are setu...

X Description: Running Angular 1.3.13 base href to load all assets from a specific subdirectory <base href="/marketing/" /> enable html 5 mode // remove hash /#/ $locationProvider.html5Mode(true);...

Mail addresses
notifications@github.com

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$location.absUrl() returns undefined with base href and html5Mode","articleBody":"Running Angular 1.3.13\n\nbase href to load all assets from a specific subdirectory\n\n```\n    \u003cbase href=\"/marketing/\" />\n```\n\nenable html 5 mode\n\n```\n    // remove hash /#/\n    $locationProvider.html5Mode(true);\n```\n\nRoutes are setup like this:\n\n```\n    $routeProvider\n      .when('/', {\n        templateUrl: 'views/main.html',\n        controller: 'MainCtrl'\n      })\n      .when('/about', {\n        templateUrl: 'views/about.html',\n        controller: 'AboutCtrl'\n      })\n      .otherwise({\n        redirectTo: '/'\n      });\n```\n\nUpon loading the application, the following error is thrown n times (I believe per anchor href on the page)\n\n```\n2VM9729 angular.js:11607 TypeError: Cannot read property 'replace' of undefined\n    at trimEmptyHash (VM9729 angular.js:10564)\n    at $LocationProvider.$get (VM9729 angular.js:11374)\n    at Object.invoke (VM9729 angular.js:4185)\n    at VM9729 angular.js:4003\n    at getService (VM9729 angular.js:4144)\n    at Object.invoke (VM9729 angular.js:4176)\n    at VM9729 angular.js:4003\n    at getService (VM9729 angular.js:4144)\n    at Object.invoke (VM9729 angular.js:4176)\n    at VM9729 angular.js:6485\n```\n\nDebugging this issue, I found at this line:\n\n```\n    // rewrite hashbang url \u003c> html5 url\n    if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {\n      $browser.url($location.absUrl(), true);\n    }\n```\n\n`$location.absUrl()` returns `undefined`\n\nMy GUESS is that the base href is throwing off the matching of routes at $.when('/'), and so is undefined...\n","author":{"url":"https://github.com/ilovett","@type":"Person","name":"ilovett"},"datePublished":"2015-02-17T22:40:08Z","url":"https://github.com/angular/angular.js/issues/11091"}

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:9a84960a-6c3a-65a0-60aa-622127bf3f72
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA264:D1FE3:3DF46B:5395E1:6AFE1F9A
html-safe-nonce5b0d6c7025e98b4650365c2ec10ffe46abf2c781cedc3880159f32f164f25c0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjY0OkQxRkUzOjNERjQ2Qjo1Mzk1RTE6NkFGRTFGOUEiLCJ2aXNpdG9yX2lkIjoiOTE1MTUyMzUwNjQzOTk4NzA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5a1f9ee3bf14b8edf1bb091ac0ff88cfbd201fff8ef127977e2c820e593eec37
hovercard-subject-tagissue:57994006
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/11091/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a610ab74286e853e822d4e9b0b455b32d549d69a2237dd4879c5c4c9c796330b/angular/angular.js/issues/11091
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a610ab74286e853e822d4e9b0b455b32d549d69a2237dd4879c5c4c9c796330b/angular/angular.js/issues/11091
og:image:altRunning Angular 1.3.13 base href to load all assets from a specific subdirectory enable html 5 mode // remove hash /#/ $locationProvider.html5Mode(true); Routes are setu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameilovett
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
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
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular.js/issues/11091#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F11091
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%2F11091
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/11091
Reloadhttps://github.com/angular/angular.js/issues/11091
Reloadhttps://github.com/angular/angular.js/issues/11091
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.absUrl() returns undefined with base href and html5Modehttps://github.com/angular/angular.js/issues/11091#top
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
type: bughttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
1.5.xhttps://github.com/angular/angular.js/milestone/90
https://github.com/ilovett
ilovetthttps://github.com/ilovett
on Feb 17, 2015https://github.com/angular/angular.js/issues/11091#issue-57994006
Nexthttps://github.com/angular/angular.js/issues/11091?timeline_page=1
https://github.com/ilovett
ilovetthttps://github.com/ilovett
on Feb 17, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-74772167
https://github.com/Feamor
Feamorhttps://github.com/Feamor
on Feb 19, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-75019335
https://github.com/kindofone
kindofonehttps://github.com/kindofone
on Mar 2, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-76680393
https://github.com/Chryssie
Chryssiehttps://github.com/Chryssie
on Mar 4, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-77086948
https://github.com/ilovett
ilovetthttps://github.com/ilovett
on Mar 4, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-77206021
#11223https://github.com/angular/angular.js/issues/11223
https://github.com/SamHwang1990
SamHwang1990https://github.com/SamHwang1990
on Mar 9, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-77869719
https://github.com/akerfoot
akerfoothttps://github.com/akerfoot
on Mar 10, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-78034032
@SamHwang1990https://github.com/SamHwang1990
https://github.com/akerfoot
akerfoothttps://github.com/akerfoot
on Mar 10, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-78034182
@Chryssiehttps://github.com/Chryssie
#11223https://github.com/angular/angular.js/issues/11223
https://github.com/jscontrust
jscontrusthttps://github.com/jscontrust
on Mar 10, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-78061812
https://github.com/joelmdev
joelmdevhttps://github.com/joelmdev
on Mar 13, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-79091795
https://github.com/mikerains
mikerainshttps://github.com/mikerains
on Mar 17, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-82437098
https://docs.angularjs.org/guide/$locationhttps://docs.angularjs.org/guide/$location
https://github.com/joelmdev
joelmdevhttps://github.com/joelmdev
on Mar 19, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-83777569
https://github.com/Narretz
Narretzhttps://github.com/Narretz
on Mar 22, 2015https://github.com/angular/angular.js/issues/11091#issuecomment-84588283
@joelmdevhttps://github.com/joelmdev
Narretzhttps://github.com/Narretz
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
on Mar 22, 2015https://github.com/angular/angular.js/issues/11091#event-261540191
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 24, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-221360108
@lili21https://github.com/lili21
snapshothttps://code.angularjs.org/snapshot
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 24, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-221391441
#14488https://github.com/angular/angular.js/pull/14488
@Narretzhttps://github.com/Narretz
@lili21https://github.com/lili21
https://github.com/benbr-personal
benbr-personalhttps://github.com/benbr-personal
on May 26, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-221989288
@joelmdevhttps://github.com/joelmdev
Narretzhttps://github.com/Narretz
1.4.xhttps://github.com/angular/angular.js/milestone/80
1.5.xhttps://github.com/angular/angular.js/milestone/90
on May 27, 2016https://github.com/angular/angular.js/issues/11091#event-674802865
https://github.com/jdimov
jdimovhttps://github.com/jdimov
on Jun 5, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-223832967
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jun 6, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-223930143
@jdimovhttps://github.com/jdimov
#14488https://github.com/angular/angular.js/pull/14488
gkalpakhttps://github.com/gkalpak
completedhttps://github.com/angular/angular.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
b9ac336https://github.com/angular/angular.js/commit/b9ac3362ee2a7c44417cd9f414ba0c8f40288dfd
on Jun 6, 2016https://github.com/angular/angular.js/issues/11091#event-682797753
gkalpakhttps://github.com/gkalpak
on Jun 6, 2016https://github.com/angular/angular.js/issues/11091#event-682798121
fix($location) : initialize `$$absUrl` to empty stringhttps://github.com/angular/angular.js/commit/294d6793fd0e0781a257e35a165e0c6fde082fe7
https://docs.github.com/articles/closing-issues-via-commit-messages
294d679https://github.com/angular/angular.js/commit/294d6793fd0e0781a257e35a165e0c6fde082fe7
https://github.com/jdimov
jdimovhttps://github.com/jdimov
on Jun 6, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-223951655
#11091https://github.com/angular/angular.js/issues/11091
#11091https://github.com/angular/angular.js/issues/11091
b9ac336https://github.com/angular/angular.js/commit/b9ac3362ee2a7c44417cd9f414ba0c8f40288dfd
b9ac336https://github.com/angular/angular.js/commit/b9ac3362ee2a7c44417cd9f414ba0c8f40288dfd
#11091 (comment)https://github.com/angular/angular.js/issues/11091#event-682797753
https://github.com/notifications/unsubscribe/AC3clEx5oIhyALbzKbznuxVXSwKqCvBzks5qJBihgaJpZM4Dhxwbhttps://github.com/notifications/unsubscribe/AC3clEx5oIhyALbzKbznuxVXSwKqCvBzks5qJBihgaJpZM4Dhxwb
https://github.com/joelmdev
joelmdevhttps://github.com/joelmdev
on Jun 14, 2016https://github.com/angular/angular.js/issues/11091#issuecomment-225929346
SevInfhttps://github.com/SevInf
on Oct 9, 2016https://github.com/angular/angular.js/issues/11091#event-817336243
Make ProtonWeb run in Electronhttps://github.com/SevInf/Charge/commit/6c3e0e47dc0e8c6fa74e5d204ad4400d5b0327de
6c3e0e4https://github.com/SevInf/Charge/commit/6c3e0e47dc0e8c6fa74e5d204ad4400d5b0327de
JonFerrerahttps://github.com/JonFerrera
on Sep 28, 2024https://github.com/angular/angular.js/issues/11091#event-14443019486
fix($location) : initialize `$$absUrl` to empty stringhttps://github.com/JonFerrera/angular.js/commit/b9ac3362ee2a7c44417cd9f414ba0c8f40288dfd
https://docs.github.com/articles/closing-issues-via-commit-messages
b9ac336https://github.com/JonFerrera/angular.js/commit/b9ac3362ee2a7c44417cd9f414ba0c8f40288dfd
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular.js/issues/11091
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular.js/issues/11091
component: $locationhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20%24location%22
type: bughttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
1.5.xhttps://github.com/angular/angular.js/milestone/90
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.