favicons fallback on raster.png due to smart quote in inst/BS5/templates/head.html
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- html
- Domain
- documentation
Research direction
Start with inst/BS5/templates/head.html at the favicon link around line 9. Check the SVG link's type attribute and correct the quotation marks; done means the generated link is valid so browsers can use favicon.svg instead of falling back to the raster icon.
Written by the indexing model from the issue text.
Description
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
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).
- Dominant language
- R
- Stars
- 775
- Forks
- 355
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/pkgdown
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100