mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
fix(share modal): fixed link in share modal when sub app url is /dashboard/, fixes #5109
This commit is contained in:
parent
d474eba53a
commit
37821e6d63
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user