We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 315ebc1 + c94d2a7 commit 2732c4dCopy full SHA for 2732c4d
docs/patterns/favicon.rst
@@ -24,8 +24,11 @@ the root path of the domain you either need to configure the web server to
24
serve the icon at the root or if you can't do that you're out of luck. If
25
however your application is the root you can simply route a redirect::
26
27
- app.add_url_rule('/favicon.ico',
28
- redirect_to=url_for('static', filename='favicon.ico'))
+ app.add_url_rule(
+ "/favicon.ico",
29
+ endpoint="favicon",
30
+ redirect_to=url_for("static", filename="favicon.ico"),
31
+ )
32
33
If you want to save the extra redirect request you can also write a view
34
using :func:`~flask.send_from_directory`::
0 commit comments