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

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

rgdev
Copy link
Contributor

@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

Copy link
Member

@hkonsti hkonsti left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time!

@hkonsti hkonsti merged commit 5dae7c2 into redotvideo:main Jan 9, 2025
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
2 participants