fix(share modal): fixed link in share modal when sub app url is /dashboard/, fixes #5109

This commit is contained in:
Torkel Ödegaard 2016-05-20 08:31:27 +02:00
parent d474eba53a
commit 37821e6d63

View File

@ -70,7 +70,7 @@ function (angular, _, require, config) {
$scope.shareUrl = linkSrv.addParamsToUrl(baseUrl, params);
var soloUrl = $scope.shareUrl;
soloUrl = soloUrl.replace('/dashboard/', '/dashboard-solo/');
soloUrl = soloUrl.replace(config.appSubUrl + '/dashboard/', config.appSubUrl + '/dashboard-solo/');
soloUrl = soloUrl.replace("&fullscreen", "");
$scope.iframeHtml = '<iframe src="' + soloUrl + '" width="450" height="200" frameborder="0"></iframe>';