Skip to content

feat: support custom favicons for each wiki space - #413

Merged
NagariaHussain merged 4 commits into
frappe:masterfrom
vishwajeet-13:fix/favicon
Jul 30, 2025
Merged

feat: support custom favicons for each wiki space#413
NagariaHussain merged 4 commits into
frappe:masterfrom
vishwajeet-13:fix/favicon

Conversation

@vishwajeet-13

@vishwajeet-13 vishwajeet-13 commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator

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 -

Screenshot from 2025-07-29 19-57-11

After -

WhatsApp.Video.2025-07-29.at.9.15.43.PM.mp4

closes #405

"url": "/drafts",
},
],
"favicon": wiki_space.favicon,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if favicon is not set?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated code to set a default favicon when none is specified

@NagariaHussain

Copy link
Copy Markdown
Member

@vishwajeet-13 please use semantic commits for all your commit messages.

"url": "/drafts",
},
],
"favicon": wiki_space.favicon or "/assets/frappe/images/frappe-favicon.svg",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@NagariaHussain

Copy link
Copy Markdown
Member

image

Let's also move the two attach images to the next column and the following child table to a next section?

"url": "/drafts",
},
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@NagariaHussain

Copy link
Copy Markdown
Member

Also, can you share an screenshot of the updated form layout?

@vishwajeet-13

Copy link
Copy Markdown
Collaborator Author

Screenshot of new image is attached below & also removed extra space.

Screenshot from 2025-07-30 00-17-31

@NagariaHussain
NagariaHussain merged commit b670d83 into frappe:master Jul 30, 2025
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

Successfully merging this pull request may close these issues.

Favicon Confusion Between ERPNext and Frappe Docs

2 participants