Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Protocol-less BASE URI doesn't work #5292

@gromgull

Description

@gromgull

Ideally I'd like to have

<base href="//myserver.com"> 

in my HTML, so that I can serve http and https from the same folder. But Angular then falls over with a:

TypeError: Cannot call method 'indexOf' of undefined
    at beginsWith (http://localhost:5012/js/vendor/angular/angular.js:8405:13)
    at Object.$$parse (http://localhost:5012/js/vendor/angular/angular.js:8448:19)
    at $LocationProvider.$get (http://localhost:5012/js/vendor/angular/angular.js:8960:15)
    at Object.invoke (http://localhost:5012/js/vendor/angular/angular.js:3646:28)
    at http://localhost:5012/js/vendor/angular/angular.js:3479:37
    at getService (http://localhost:5012/js/vendor/angular/angular.js:3600:39)
    at Object.invoke (http://localhost:5012/js/vendor/angular/angular.js:3622:13)
    at http://localhost:5012/js/vendor/angular/angular.js:3479:37
    at getService (http://localhost:5012/js/vendor/angular/angular.js:3600:39)
    at Object.invoke (http://localhost:5012/js/vendor/angular/angular.js:3622:13) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions