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

Ensure CMCD query argument is replaced #20

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

zmousm
Copy link
Contributor

@zmousm zmousm commented Apr 6, 2024

The query argument added by the CMCD connector is preserved in subsequent manifest/segment requests by THEOplayer, apparently leading to multiple CMCD arguments being accumulated, which is a problem as the URL grows indefinitely.

Using URLSearchParams set method, rather than append, ensures that the first CMCD argument is updated (the rest are removed) or one is appended.

The query argument added by the CMCD connector is preserved in subsequent manifest/segment requests by THEOplayer, apparently leading to multiple CMCD arguments being accumulated, which is a problem as the URL grows indefinitely.
Using URLSearchParams set method, rather than append, ensures that the first CMCD argument is updated (the rest are removed) or one is appended.
Copy link

changeset-bot bot commented Apr 6, 2024

🦋 Changeset detected

Latest commit: f7e112e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@theoplayer/cmcd-connector-web Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MattiasBuelens MattiasBuelens self-requested a review April 9, 2024 08:58
@MattiasBuelens
Copy link
Contributor

Woops, good catch! Thanks for the contribution. 🙂

@MattiasBuelens MattiasBuelens merged commit 06f1168 into THEOplayer:main Apr 9, 2024
1 check passed
@MattiasBuelens MattiasBuelens added 🔌 connector: cmcd Affects the CMCD connector bug Something isn't working labels Apr 9, 2024
@zmousm zmousm deleted the patch-1 branch April 9, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔌 connector: cmcd Affects the CMCD connector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants