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

fix: restore relative url support for video nodes #339

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rgdev
Copy link

@rgdev rgdev commented Dec 7, 2024

This pull request addresses an issue introduced in a previous fix preventing the use of relative urls in <Video> nodes.

The bug occurs because the value of src is now passed to the URL() constructor.
It works well when the path is absolute however as described in the URL API specifications a second base argument containing the base of the url is required when using a relative path.

The base argument will be ignored if a <Video> node is provided with an absolute url so both absolute & relative paths should work fine.

resolves #338

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.

Failed to construct 'URL': Invalid URL when using files in /public directory
1 participant