Visitar URL original
favicons fallback on raster.png due to smart quote in inst/BS5/templates/head.html · Issue #3005 · r-lib/pkgdown · GitHub
Skip to content

favicons fallback on raster.png due to smart quote in inst/BS5/templates/head.html #3005

Open

Description

@njtierney

Note: This was found with assistance from Claude.

The SVG favicon <link> in inst/BS5/templates/head.html wraps the type value in curly/smart quotes (”…”, U+201D) instead of straight quotes:

See

<link rel="icon" type=”image/svg+xml” href="{{#site}}{{root}}{{/site}}favicon.svg">

Because type="image/svg+xml" is malformed, browsers can't parse the link and ignore favicon.svg, falling back to the raster .ico/PNG. Sites whose raster favicon is lower quality then get a pixelated tab icon even though a crisp favicon.svg exists and is being copied to the site root.

Fix by replacing smart quote with straight quote

Potentially introduced in #2804 (smart-quote autocorrect when pasting the favicon snippet).

Activity

  1. added a commit that references this issue on Jul 8, 2026
    f74cd18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions