From 6b1b48f2853d32258d794572a88d9f77dca54bd2 Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Mon, 13 May 2024 08:49:53 -0300 Subject: [PATCH 1/2] fix!: add missing encoding for media links Close #10 --- .../resources/frontend/src/fc-sharee-connector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/META-INF/resources/frontend/src/fc-sharee-connector.js b/src/main/resources/META-INF/resources/frontend/src/fc-sharee-connector.js index 1cb3b05..6bc5181 100644 --- a/src/main/resources/META-INF/resources/frontend/src/fc-sharee-connector.js +++ b/src/main/resources/META-INF/resources/frontend/src/fc-sharee-connector.js @@ -94,16 +94,16 @@ window.fcShareeConnector = { */ _updateSocialShareLinks() { Sharee.drivers['facebook'].prototype.getLink = function () { - return `https://facebook.com/sharer/sharer.php?u=${this.options?.shareLink}&t=${encodeURIComponent(this.options?.shareText)}` + return `https://facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.options?.shareLink)}&t=${encodeURIComponent(this.options?.shareText)}` } Sharee.drivers['whatsapp'].prototype.getLink = function () { - return `https://wa.me?text=${this.options?.shareText} \n ${this.options?.shareLink}` + return `https://wa.me?text=${encodeURIComponent(this.options?.shareText)} \n ${encodeURIComponent(this.options?.shareLink)}` } Sharee.drivers['twitter'].prototype.getLink = function () { - return `https://twitter.com/intent/tweet?text=${encodeURIComponent(this.options?.shareText)}&url=${this.options?.shareLink}` + return `https://twitter.com/intent/tweet?text=${encodeURIComponent(this.options?.shareText)}&url=${encodeURIComponent(this.options?.shareLink)}` } Sharee.drivers['linkedin'].prototype.getLink = function () { - return `https://www.linkedin.com/shareArticle?url=${this.options?.shareLink}` + return `https://www.linkedin.com/shareArticle?url=${encodeURIComponent(this.options?.shareLink)}` } }, From 0549f70b80d9ceb4363b9c3b87342caa6bcbf3bb Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Tue, 14 May 2024 11:23:28 -0300 Subject: [PATCH 2/2] build: update version to 2.0.0-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9f587dc..ad87c95 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.vaadin.addons.flowingcode share-easy-addon - 1.1.1-SNAPSHOT + 2.0.0-SNAPSHOT Share Easy Add-on Share Eady Add-on for Vaadin Flow