]> _ Git - fluidbook-html5.git/commitdiff
fix #3618 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Apr 2020 12:57:37 +0000 (14:57 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 Apr 2020 12:57:37 +0000 (14:57 +0200)
js/libs/fluidbook/fluidbook.share.js

index 0f60d476e343185c38c18340dd568e2f5d76eb64..2d39da30ca1b2361031774d7aed9e31b1c974a7a 100644 (file)
@@ -92,7 +92,9 @@ FluidbookShare.prototype = {
             if (e[0] === 'http' || e[0] === 'https') {
                 return url
             } else if (e[0] === 'article') {
-                return relativeToAbsoluteURL('./p/' + this.getSEOArticle(e[1]).url);
+                e.shift();
+                var articleTitle = e.join(':');
+                return relativeToAbsoluteURL('./p/' + this.getSEOArticle(articleTitle).url);
             }
         }
     },