-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Updated fav-icon Base URL from JupyterLab PageConfig. #7109
Conversation
@@ -422,10 +426,10 @@ const tabIcon: JupyterFrontEndPlugin<void> = { | |||
) as HTMLLinkElement; | |||
switch (status) { | |||
case 'busy': | |||
link.href = busyIcon; | |||
link.href = baseURL + busyIcon; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this string concatenation be moved above where notebookIcon
and busyIcon
are defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it could be combined with URLExt.join()
(some example uses in this repo).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the Quick review. This will be more readable. have Updated the PR.
@jtpio could u please guide me about why Build / Test Lint (pull_request) is failing?, Logs of the job are pointing to file /notebook/blob/main/notebook/app.py. |
The lint failure looks related to an upstream change, maybe this new release? https://github.com/jupyter-server/jupyter_server/releases/tag/v2.8.0 Similar to #7104, we can fix that separately. |
FYI @jayeshsingh9767 I've updated the branch to include #7104, which should hopefully help fix the CI. |
The new failure can likely be fixed by running |
@@ -38,6 +38,9 @@ import { Widget } from '@lumino/widgets'; | |||
|
|||
import { TrustedComponent } from './trusted'; | |||
|
|||
import { PageConfig, URLExt } from '@jupyterlab/coreutils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These imports can be grouped with the other imports above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it will update the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just checked with a different base URL and it seems to be working fine:
favicons-busy-baseurl.mp4
Thanks @jtpio |
We were Getting 404 because base URL of binder(different base url) was used for fetching fav-icons I have update code to use Base URL from JupyterLab PageConfig.
This closes issue #7076