Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Nov 11, 2025

Uses the OpenCloud logo as default favicon until the theme favicon is loaded. This fixes an issue where OpenCloud would not have any bookmark icon in Firefox due to the initially missing favicon.

Unfortunately, we can't use vueuse/head because it would result in a duplicated <link rel=""> tag.

fixes #1125

Uses the OpenCloud logo as default favicon until the theme favicon is loaded. This fixes an issue where OpenCloud would not have any bookmark icon in Firefox due to the initially missing favicon.

Unfortunately, we can't use `vueuse/head` because it would result in a duplicated `<link rel="">` tag.
@JammingBen JammingBen self-assigned this Nov 11, 2025
Copilot AI review requested due to automatic review settings November 11, 2025 08:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a missing bookmark icon issue in Firefox by introducing a default OpenCloud logo favicon that displays immediately on page load, which is then replaced by the theme-specific favicon once the theme is loaded.

  • Adds a default favicon link in the HTML head
  • Moves favicon management from the useHead composable to the theme store using direct DOM manipulation
  • Simplifies the useHead composable to only manage meta tags

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
index.html Adds a default favicon link pointing to the OpenCloud logo SVG
packages/web-container/img/favicon.svg New default favicon file containing the OpenCloud logo
packages/web-runtime/src/composables/head/useHead.ts Removes favicon management and theme store dependencies, simplifies to only handle meta tags
packages/web-pkg/src/composables/piniaStores/theme.ts Adds setFavicon function for dynamic favicon updates and calls it when theme is applied

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JammingBen JammingBen merged commit dca8a4d into main Nov 11, 2025
35 checks passed
@JammingBen JammingBen deleted the fix/firefox-default-favicon branch November 11, 2025 08:45
@JammingBen
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
stable-4.2

Questions ?

Please refer to the Backport tool documentation

@openclouders openclouders mentioned this pull request Nov 11, 2025
1 task
openclouders pushed a commit that referenced this pull request Nov 11, 2025
@openclouders openclouders mentioned this pull request Dec 15, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox: Bookmark icon missing – /favicon.ico served as HTML

3 participants