Skip to content

Commit

Permalink
Merge pull request #776 from adobecom/mobile-widget-fix-pdf-editor-re…
Browse files Browse the repository at this point in the history
…direct

updated redirect link
  • Loading branch information
Blainegunn committed Sep 3, 2024
2 parents 0c298f1 + e5b695e commit 50120b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions acrobat/blocks/mobile-widget/mobile-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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';

Expand Down Expand Up @@ -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' });
Expand Down

0 comments on commit 50120b4

Please sign in to comment.