]> _ Git - fluidbook-html5.git/commitdiff
wip #8049 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Mar 2026 14:57:00 +0000 (15:57 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Mar 2026 14:57:06 +0000 (15:57 +0100)
js/libs/fluidbook/fluidbook.links.js

index b40cfb8e571905deb3e67632af5871fe64b62e3f..7f4fec8ee85cbfc89116355ce40b54b7ba43307e 100644 (file)
@@ -222,7 +222,7 @@ FluidbookLinks.prototype = {
                 return;
             }
 
-            if (target === '_self') {
+            if (target === '_self' || target === '_top' || target === '_parent') {
                 return true;
             }
             if ($(this).attr('download') && !Modernizr.msie) {
@@ -1073,8 +1073,7 @@ FluidbookLinks.prototype = {
         let $this = this;
         if (this.fluidbook.settings.specialShortLinks !== undefined && this.fluidbook.settings.specialShortLinks.length > 0) {
             this.fluidbook.service.call('shortlinks', {
-                cid: this.fluidbook.settings.cid,
-                links: this.fluidbook.settings.specialShortLinks
+                cid: this.fluidbook.settings.cid, links: this.fluidbook.settings.specialShortLinks
             }, function (data) {
                 $this.shortLinks = data;
             }, null, 'post');