feat: support custom favicons for each wiki space - #413
Merged
Conversation
NagariaHussain
requested changes
Jul 29, 2025
| "url": "/drafts", | ||
| }, | ||
| ], | ||
| "favicon": wiki_space.favicon, |
Member
There was a problem hiding this comment.
What if favicon is not set?
Collaborator
Author
There was a problem hiding this comment.
Updated code to set a default favicon when none is specified
Member
|
@vishwajeet-13 please use semantic commits for all your commit messages. |
NagariaHussain
requested changes
Jul 29, 2025
| "url": "/drafts", | ||
| }, | ||
| ], | ||
| "favicon": wiki_space.favicon or "/assets/frappe/images/frappe-favicon.svg", |
Member
There was a problem hiding this comment.
Better way would be to only add favicon to the context if there is a favicon in wiki space, else let the base be used (if we don't add to context). Because we want the app's/website settings favicon to take over and not a hardcoded one like in this case.
Member
NagariaHussain
requested changes
Jul 30, 2025
| "url": "/drafts", | ||
| }, | ||
| ], | ||
|
|
Member
|
Also, can you share an screenshot of the updated form layout? |
vishwajeet-13
force-pushed
the
fix/favicon
branch
from
July 30, 2025 03:08
15a7dad to
e016ccb
Compare
vishwajeet-13
force-pushed
the
fix/favicon
branch
from
July 30, 2025 03:10
e016ccb to
c3a0cd3
Compare
Collaborator
Author
NagariaHussain
approved these changes
Jul 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Previously, the favicon remained the same when switching between different Wiki Spaces, which caused confusion and inconsistency in branding across spaces.
This PR fixes that by adding a favicon field to the Wiki Space DocType, allowing each space to have its own unique favicon.
Now, when you switch between Wiki Spaces, the favicon updates accordingly — improving clarity and user experience.
Before -
After -
WhatsApp.Video.2025-07-29.at.9.15.43.PM.mp4
closes #405