I am attempting to navigate from a element with the class "class1" to a div with the class "class2". However, when the link is clicked, the URL changes. This causes an issue where trying to go back results in returning to the current page at a different section.
<a RouterLink="." [fragment]="'idDiv'" class="class1"></a>
...
<div class="class2" id="idDiv"></div>