Podcast/lib/angular/docs/partials/error/$location:ipthprfx.html
2013-08-21 19:46:51 +02:00

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 &quot;{0}&quot;, missing path prefix &quot;{1}&quot;.">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>&lt;base&gt;</code> element and try to update the location with a path that doesn&#39;t match the base prefix.</p>
<p>To resolve this issue, please check the base url specified via the <code>&lt;base&gt;</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>