[2.x] Serve /favicon.ico through Flarum in the nginx config shipped with flarum/flarum
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Read .nginx.conf and locate the static file regex location block that currently handles .ico requests. Add the exact /favicon.ico location shown in the issue before the other location blocks, then check that its try_files directive passes missing files to /index.php with the query string. Done means nginx can route /favicon.ico to Flarum.
Written by the indexing model from the issue text.
Description
flarum/framework#5319 adds a /favicon.ico route that redirects to the forum's icon, for crawlers and feed readers that ask for it without reading the page.
The nginx config shipped in flarum/flarum (.nginx.conf) has a regex location for static files, including .ico, with no fallback to index.php. nginx answers /favicon.ico with a 404 before Flarum sees it. Apache and LiteSpeed already pass it to Flarum through .htaccess.
Once #5319 is merged, add this to flarum/flarum's .nginx.conf, before the other location blocks:
location = /favicon.ico {
try_files $uri /index.php?$query_string;
}
Existing installs keep their own config. flarum/docs#693 documents the line for them.
- Dominant language
- PHP
- Stars
- 6.8k
- Forks
- 892
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 209
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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 flarum/framework
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Admin search ignores a settings or permissions item's own linkPossibly taken @GBra-4-669 claimed this 14 days ago. Opentype/bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
type/extensibility
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
All issues in flarum/framework
Similar issues
-
mobile-app
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Open-Locker/Open-Locker#352 ·
Maintainers usually reply within 1 day
-
[Bug]: SCIM Users groups[].value is returned as an integer, causing authentik user discovery to failOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
grokability/snipe-it#20006 ·
Maintainers usually reply within 1 day
-
fixed
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
firefly-iii/firefly-iii#13150 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
TYPO3-Solr/ext-solr#4828 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 3 days