From ca92b6528af776e6543f14aac7e5cd7e7aa652fc Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 12 Aug 2013 14:08:22 -0700 Subject: docs(minErr): add location/ipthprfx --- docs/content/error/location/ipthprfx.ngdoc | 8 ++++++++ docs/content/error/location/nopp.ngdoc | 4 ---- src/ng/location.js | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 docs/content/error/location/ipthprfx.ngdoc delete mode 100644 docs/content/error/location/nopp.ngdoc diff --git a/docs/content/error/location/ipthprfx.ngdoc b/docs/content/error/location/ipthprfx.ngdoc new file mode 100644 index 00000000..afbcda3f --- /dev/null +++ b/docs/content/error/location/ipthprfx.ngdoc @@ -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 `` 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 `` tag in the head of your main html document, as well as the url that you tried to set the location to. diff --git a/docs/content/error/location/nopp.ngdoc b/docs/content/error/location/nopp.ngdoc deleted file mode 100644 index 3d95b7ff..00000000 --- a/docs/content/error/location/nopp.ngdoc +++ /dev/null @@ -1,4 +0,0 @@ -@ngdoc error -@name $location:nopp -@fullName Missing Path Prefix -@description diff --git a/src/ng/location.js b/src/ng/location.js index 48d03971..f7f2669f 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -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); -- cgit v1.2.3