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

Error when using external_stylesheets or external_scripts with URL that has double-slash notation #252

Open
daattali opened this issue May 25, 2021 · 0 comments

Comments

@daattali
Copy link
Contributor

The double slash notation can be used to fetch a resource using the same protocol that the current page is using. For example

dash::Dash$new(external_stylesheets = "//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css")
dash::Dash$new(external_scripts = "//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js")

These should get the respective css/js file either from http:// or https:// depending on the current page. But instead an error is given:

Error: A valid URL must be included with every entry in external_stylesheets. Please sure no 'href' entries are missing or malformed.
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

No branches or pull requests

1 participant