Links should be handled through `url_for()`.

`<a href="{{ url_for('index') }}">`