Verify that the actual anchor is defined in the template as follows:
<a name="container"></a>
And then refer to it the way you did it:
<a data-hover="Are You At Risk?" href="{% url 'home' %}#container">My link</a>
If this does not work, add / immediately before your # -tag:
<a data-hover="Are You At Risk?" href="{% url 'home' %}/#container">My link</a>
Leistungsabfall
source share