Commit a71d961d authored by Robert Knight's avatar Robert Knight

Explicitly include the service URL in stream links from the annotation card

Make these links work when the app is hosted at a different
base URL from the Hypothesis service.
parent 627cdab4
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
ng-if="(vm.canCollapseBody || vm.form.tags.length) && !vm.editing()"> ng-if="(vm.canCollapseBody || vm.form.tags.length) && !vm.editing()">
<ul class="tag-list"> <ul class="tag-list">
<li class="tag-item" ng-repeat="tag in vm.form.tags"> <li class="tag-item" ng-repeat="tag in vm.form.tags">
<a href="/stream?q=tag:'{{tag.text|urlencode}}'" target="_blank">{{tag.text}}</a> <a href="{{::vm.serviceUrl}}stream?q=tag:'{{tag.text|urlencode}}'" target="_blank">{{tag.text}}</a>
</li> </li>
</ul> </ul>
<div class="u-stretch"></div> <div class="u-stretch"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment