How do I add an icon to Flask’s address bar?… here is a solution to the problem.
How do I add an icon to Flask’s address bar?
I’m reading this book: Flask Web Developmen. Here’s the code for this book to add an icon to the address bar:
{% block head %}
{{ super() }}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"
type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}"
type="image/x-icon">
{% endblock %}
My question is: why do I need two links to add an icon.
In HTML, this line <link rel="shortcut icon" href="static/favicon.ico" >
sufficient for this task. Isn’t it?