Skip to content

Sanitize manifest url if params included in middle - #623

Merged
masaball merged 1 commit into
mainfrom
parameters
Aug 15, 2024
Merged

Sanitize manifest url if params included in middle#623
masaball merged 1 commit into
mainfrom
parameters

Conversation

@masaball

Copy link
Copy Markdown
Contributor

This commit is to fix an issue found with Ramp embedded in Avalon. If the request url from Avalon has params on the end, Avalon feeds the entire url into Ramp as
https://example.com/endpoint?params/manifest.json. This causes media to fail to load because it is not a valid manifest url. By removing the params from the middle of the url, we can get Ramp to request the proper manifest url.

Related issue: #615

This commit is to fix an issue found with Ramp embedded in Avalon. If
the request url from avalon has params on the end, Avalon feeds the
entire url into Ramp as
`https://example.com/endpoint?params/manifest.json`. This causes media
to fail to load because it is not a valid manifest url. By removing the
params from the middle of the url, we can get Ramp to request the proper
manifest url.

@Dananji Dananji left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good 👍

@masaball
masaball merged commit 417d49a into main Aug 15, 2024
@masaball
masaball deleted the parameters branch August 15, 2024 17:06
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