Skip to content

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

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).

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