From 41198263b941e429b79fffbe2064273cae89cfc1 Mon Sep 17 00:00:00 2001 From: saragajic11 Date: Tue, 27 Aug 2024 12:08:10 +0200 Subject: [PATCH 1/3] updated redirect link --- acrobat/blocks/mobile-widget/mobile-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acrobat/blocks/mobile-widget/mobile-widget.js b/acrobat/blocks/mobile-widget/mobile-widget.js index a1560a57..bf28c7d6 100644 --- a/acrobat/blocks/mobile-widget/mobile-widget.js +++ b/acrobat/blocks/mobile-widget/mobile-widget.js @@ -8,7 +8,7 @@ const verbRedirMap = { 'extract-pages': 'extract', 'combine-pdf': 'combine', 'protect-pdf': 'protect', - 'add-comment': 'add-comment', + 'add-comment': 'addcomment', 'pdf-to-image': 'pdftoimage', 'reorder-pages': 'reorderpages', sendforsignature: 'sendforsignature', From c1fb249931d1e0c291290ad3a8c2d17c6f6da7bc Mon Sep 17 00:00:00 2001 From: saragajic11 Date: Fri, 30 Aug 2024 11:20:06 +0200 Subject: [PATCH 2/3] created separate verbredirect map for analytics --- acrobat/blocks/mobile-widget/mobile-widget.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/acrobat/blocks/mobile-widget/mobile-widget.js b/acrobat/blocks/mobile-widget/mobile-widget.js index bf28c7d6..c641f658 100644 --- a/acrobat/blocks/mobile-widget/mobile-widget.js +++ b/acrobat/blocks/mobile-widget/mobile-widget.js @@ -23,6 +23,11 @@ const verbRedirMap = { 'chat-pdf': 'chat', }; +const verbRedirMapAnalytics = { + ...verbRedirMap, + 'add-comment': 'add-comment' // Adjust for analytics map +}; + const EOLBrowserPage = 'https://acrobat.adobe.com/home/index-browser-eol.html'; const fallBack = 'https://www.adobe.com/go/acrobat-overview'; @@ -77,7 +82,7 @@ function createTag(tag, attributes, html) { } function createMobileWidget(element, content, verb) { - const aaVerbName = `${verbRedirMap[verb] || verb}`; + const aaVerbName = `${verbRedirMapAnalytics[verb] || verb}`; const artID = content[1].querySelector('a')?.href || content[1].querySelector('img')?.src; const wrapper = createTag('div', { class: 'mobile-widget_wrapper' }); From e5b695e2cb923a1c0a5711d8850978098fc0c7d7 Mon Sep 17 00:00:00 2001 From: saragajic11 Date: Fri, 30 Aug 2024 11:28:09 +0200 Subject: [PATCH 3/3] eslint fix --- acrobat/blocks/mobile-widget/mobile-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acrobat/blocks/mobile-widget/mobile-widget.js b/acrobat/blocks/mobile-widget/mobile-widget.js index c641f658..73264a36 100644 --- a/acrobat/blocks/mobile-widget/mobile-widget.js +++ b/acrobat/blocks/mobile-widget/mobile-widget.js @@ -25,7 +25,7 @@ const verbRedirMap = { const verbRedirMapAnalytics = { ...verbRedirMap, - 'add-comment': 'add-comment' // Adjust for analytics map + 'add-comment': 'add-comment', // Adjust for analytics map }; const EOLBrowserPage = 'https://acrobat.adobe.com/home/index-browser-eol.html';