angularjs url together with django framework
<p>I have a small issue with angular's ng-click() and redirecting to new page. Here is the problem:</p>

<p>In my html I have small d3 app with an attribute:</p>

<pre><code>.attr("ng-click", "go(" + "'" + "{% url 'home' %}" + "'" + ")")
</code></pre>

<p>in my js document I have:</p>

<pre><code>$scope.go = function(link) {
    $location.path(link);
};
</code></pre>

<p>My base url is sth like: </p>

<pre><code>127.0.0.1:8000/username/test/
</code></pre>

<p>Now when I click on the d3 element I get the following:</p>

<pre><code>127.0.0.1:8000/username/test/#home/
</code></pre>

<p>However I wish to have:</p>

<pre><code>127.0.0.1:8000/home/
</code></pre>

<p>Have You got any tips to fix that? I tried also with $location.hash(...) and no luck...</p>