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

Fxed issue: Favicon not showing in the browser tab #1209 #1213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShivanshKumar760
Copy link

fixes #1209

Title: Fix: Update Favicon Path and Resolution for Consistent Deployment Behavior

Description:

Issue: The favicon was appearing blank in the deployed version of the application, even though it displayed correctly locally.
Root Cause: An investigation revealed that the favicon reference was commented out in the production HTML. Additionally, the favicon file was not located in the public folder, which is required for proper asset serving in Vite-based projects.
Fix Implemented:

Uncommented the <link rel="icon" ...> tag.

Moved the favicon.ico file to the public folder to ensure it is served from the root (/favicon.ico).
Adjusted the resolution of the favicon to improve compatibility across different browsers.
Testing: The changes have been verified on Safari, Microsoft Edge, and Arc. Note that Brave may have caching issues; a hard refresh or cache clear might be necessary.

Rationale:
Keeping the favicon in the public folder guarantees that it is accessible at the root URL, as expected by browsers. This eliminates path resolution issues and ensures that the favicon is consistently loaded in both development and production environments.

githubissueProblem
fixedissus

@ShivanshKumar760
Copy link
Author

@salahlalami please sir go through it although its a very small change

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 not showing in the browser tab
1 participant