My #id is not showing in the url when the user clicks on the anchor tag

Question

I am working on my WordPress website and when the user clicks on the <a href="#id"> tag, the #id is not showing in the URL and because of that, when the user clicks on the back button, it is taking me to the back not on the top of the page.

I want that, when the user click on the <a href="#id"> tag and it moves to that id but when the user clicks on the back button, it should take me to the top of the page. Now, it is taking me to the back page.

Any help is much appreciated.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/my-id-is-not-showing-in-the-url-when-the-user-clicks-on-the-anchor-tag/">

My #id is not showing in the url when the user clicks on the anchor tag</a>
0
Rahul Kumar 2 months 0 Answers 26 views 0

Leave an answer