samvera-labs / ramp

Interactive, IIIF powered audio/video media player React components library. Styleguidist Docs: https://samvera-labs.github.io/ramp/
https://ramp.avalonmediasystem.org/
30 stars 5 forks source link

Sanitize manifest url if params included in middle #623

Closed masaball closed 3 months ago

masaball commented 3 months ago

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