I want to add the hash in the URL to go to particular section. My code is to reach the customer section in that page
<a href="#customer">Customers</a>
When I click this link, the URL will be updated like below.
http://www.example.com#customer
But Angular 7 adds slash / before hash # in the URL after some fraction of seconds and URL will become like this.
http://www.example.com/#customer
But the page remains same even though its updating slash.
The issue is When I try to click the Cutomers link again, the URL will be http://www.example.com#customer
So URL mismatch will happen here as no slash will be there before hash when I click second time. so it reloads the page
How to prevent adding slash before hash in angular 7