Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWPW-166076 Update a.com Business plans page CTAs to point to CME-1 M7 #3723

Open
wants to merge 9 commits into
base: stage
Choose a base branch
from

Conversation

bozojovicic
Copy link
Contributor

@bozojovicic bozojovicic commented Feb 21, 2025

Replace all /creativecloud/business-plans.html with /store/segmentation links
where the co parameter value is read from user's profile if user is logged in
otherwise it is taken from page locale.

Resolves: MWPW-166076

Test URLs:

Copy link
Contributor

aem-code-sync bot commented Feb 21, 2025

Page Scores Audits Google
📱 /drafts/bozo/demo?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /drafts/bozo/demo?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@@ -737,6 +763,13 @@ export function decorateLinks(el) {
processQuickLink(a);
})();
}

if (a.href.includes(BUSINESS_PLANS_PATH)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you explored using an autoblock for such scenario? I think it would be better instead of adding all the logic in utils.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bozojovicic - you can see caas or faas autoblocks for reference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created it libs/blocks/m7business/m7business.js
BTW, autoblock is awesome idea!

@bozojovicic bozojovicic marked this pull request as ready for review February 21, 2025 15:39
Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants