mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(minErr): add location/ipthprfx
This commit is contained in:
parent
2c64f3dc17
commit
ca92b6528a
3 changed files with 9 additions and 5 deletions
8
docs/content/error/location/ipthprfx.ngdoc
Normal file
8
docs/content/error/location/ipthprfx.ngdoc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@ngdoc error
|
||||
@name $location:ipthprfx
|
||||
@fullName Invalid or Missing Path Prefix
|
||||
@description
|
||||
|
||||
This error occurs when you configure the {@link api/ng.$location `$location`} service in the html5 mode, specify a base url for your application via `<base>` element and try to update the location with a path that doesn't match the base prefix.
|
||||
|
||||
To resolve this issue, please check the base url specified via the `<base>` tag in the head of your main html document, as well as the url that you tried to set the location to.
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
@ngdoc error
|
||||
@name $location:nopp
|
||||
@fullName Missing Path Prefix
|
||||
@description
|
||||
|
|
@ -97,7 +97,7 @@ function LocationHtml5Url(appBase, basePrefix) {
|
|||
matchUrl(url, parsed);
|
||||
var pathUrl = beginsWith(appBaseNoFile, url);
|
||||
if (!isString(pathUrl)) {
|
||||
throw $locationMinErr('nopp', 'Invalid url "{0}", missing path prefix "{1}".', url, appBaseNoFile);
|
||||
throw $locationMinErr('ipthprfx', 'Invalid url "{0}", missing path prefix "{1}".', url, appBaseNoFile);
|
||||
}
|
||||
matchAppUrl(pathUrl, parsed);
|
||||
extend(this, parsed);
|
||||
|
|
|
|||
Loading…
Reference in a new issue