SOLR-12997: Fix broken link on admin Stream panel

This commit is contained in:
Joel Bernstein 2018-11-18 14:23:07 -05:00
parent d17c6d8897
commit a0788a7b5e
2 changed files with 3 additions and 4 deletions

View File

@ -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
});
};

View File

@ -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">