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

Broken icon data URL prevents loading of external favicon in lab template #1488

Open
zyzzyxdonta opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zyzzyxdonta
Copy link

zyzzyxdonta commented Sep 13, 2024

Description

The lab template contains a <link rel="icon" ... /> element with a broken data URL (the data URL is probably fine but it doesn't encode an image):

<link rel="icon" href="data:;base64,=">

This leads to browsers not loading external favicons (/favicon.ico) and trying to display the given one. Since the given icon is not a valid data URL, this does not work.

Firefox struggles with this quite a bit and even sometimes shows the icon of the page previously visited, instead.

Reproduce

  1. Create clean venv and install voila
  2. Run voila any-notebook.ipynb without any config or setup
  3. Inspect the source of the loaded page (after rendering) and look for <link rel="icon" → This shows the broken data URL still
  4. Check requests → This shows either an aborted request for favicon.ico (in Firefox) or no request at all (Chromium)

Expected behavior

The HTML should not contain a broken favicon URL. If it contains a favicon it should be minimal (Voilà logo or transparent) and I should be able to replace it easily via a command line parameter. I would prefer for this line to be removed.

Context

  • voila version 0.5.7
  • Operating System and version: Fedora Linux 40 (KDE Plasma), Ubuntu 22.04.4 LTS
  • Browser and version: Firefox 130, Chromium 128
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `voila` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.

If using JupyterLab

  • JupyterLab version:
Installed Labextensions
Paste the output from your command line running `jupyter labextension list`.
@zyzzyxdonta zyzzyxdonta added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant