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

Skip URL parsing when rendering empty links in Notebooks. #6889

Merged
merged 5 commits into from
Aug 23, 2019

Conversation

corivera
Copy link
Member

If an empty string gets passed to URLExt.isLocal(), then an error gets thrown because an empty URI is eventually created in that code path. The practical consequence of this is that rendering HTML elements with empty links in Notebooks causes errors to be thrown when checking isLocal. This change skips the parsing if there's an empty string, since it's basically "local" by default.

Fixes #6544

@corivera corivera merged commit d6950fa into master Aug 23, 2019
@corivera corivera deleted the corivera/handleEmptyLinks branch August 23, 2019 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants