11 lines
1.1 KiB
HTML
Executable file
11 lines
1.1 KiB
HTML
Executable file
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/location/ipthprfx.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Invalid or Missing Path Prefix</code>
|
|
<div><span class="hint">error in component <code ng:non-bindable="">$location</code>
|
|
</span>
|
|
</div>
|
|
</h1>
|
|
<div><pre class="minerr-errmsg" error-display="Invalid url "{0}", missing path prefix "{1}".">Invalid url "{0}", missing path prefix "{1}".</pre>
|
|
<h2 id="Description">Description</h2>
|
|
<div class="description"><div class="-location-page -location-ipthprfx-page"><p>This error occurs when you configure the <a href="api/ng.$location"><code><code>$location</code></code></a> service in the html5 mode, specify a base url for your application via <code><base></code> element and try to update the location with a path that doesn't match the base prefix.</p>
|
|
<p>To resolve this issue, please check the base url specified via the <code><base></code> tag in the head of your main html document, as well as the url that you tried to set the location to.</p>
|
|
</div></div>
|
|
</div>
|