Skip to content

Commit

Permalink
fixes embed links to re-add qs parameter
Browse files Browse the repository at this point in the history
Fixes #5900
  • Loading branch information
BigFunger authored and epixa committed Jan 23, 2016
1 parent 2bef156 commit 6ccc9b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/public/share/directives/share_object_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ app.directive('shareObjectUrl', function (Private, Notifier) {
};

$scope.getUrl = function () {
return $location.absUrl();
let url = $location.absUrl();
if ($scope.shareAsEmbed) {
url = url.replace('?', '?embed=true&');
}
return url;
};

$scope.$watch('getUrl()', updateUrl);
Expand Down

0 comments on commit 6ccc9b1

Please sign in to comment.