Skip to content

feat: detect variant pages via experiment-control-path metadata#58

Open
FentPams wants to merge 2 commits intov2from
feature/variant-page-control-path
Open

feat: detect variant pages via experiment-control-path metadata#58
FentPams wants to merge 2 commits intov2from
feature/variant-page-control-path

Conversation

@FentPams
Copy link
Contributor

Set window.hlx.variantPage with controlPath and experimentId when a page has both experiment and experiment-control-path metadata, enabling the MFE to block experiment creation on variant pages.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

FentPams and others added 2 commits March 10, 2026 14:01
Set window.hlx.variantPage with controlPath and experimentId when
a page has both experiment and experiment-control-path metadata,
enabling the MFE to block experiment creation on variant pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/index.js 25.00% 5 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant