Use localLink for media

This commit is contained in:
Rasmus John Pedersen
2019-04-09 10:52:37 +02:00
parent f246dd7dca
commit 0a66bbb293
@@ -986,8 +986,8 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
return;
}
//if we have an id, it must be a locallink:id, aslong as the isMedia flag is not set
if (id && (angular.isUndefined(target.isMedia) || !target.isMedia)) {
//if we have an id, it must be a locallink:id
if (id) {
href = "/{localLink:" + id + "}";