Apache Solr open-source search software
SOLR-12997: Fix broken link on admin Stream panel
Joel Bernsteina0788a7b5e51
diff --git a/solr/webapp/web/js/angular/controllers/stream.js b/solr/webapp/web/js/angular/controllers/stream.jsindex 7c3bcce83ca..92440c36024 100644--- a/solr/webapp/web/js/angular/controllers/stream.js+++ b/solr/webapp/web/js/angular/controllers/stream.js@@ -59,9 +59,8 @@ solrAdminApp.controller('StreamController',$scope.lang = "json";$scope.response = data;- $scope.url = $location.protocol() + "://" +- $location.host() + ":" +- $location.port() + url;+ $scope.url = url;+ $scope.hostPortContext = $location.absUrl().substr(0,$location.absUrl().indexOf("#")); // For display only});};diff --git a/solr/webapp/web/partials/stream.html b/solr/webapp/web/partials/stream.htmlindex 0d1154ec014..683cf76d943 100644--- a/solr/webapp/web/partials/stream.html+++ b/solr/webapp/web/partials/stream.html@@ -34,7 +34,7 @@ limitations under the License.<div id="result">- <a ng-show="response.data" id="url" class="address-bar" ng-href="{{url}}">{{url}}</a>+ <a ng-show="response.data" id="url" class="address-bar" ng-href="{{url}}">{{hostPortContext}}{{url}}</a><div ng-show="showExplanation" id="explanation" class="clearfix"><div id="frame">