Good afternoon, I've been looking for solutions around a long time ago and I still have not found one that applies to my situation.
I made a menu with the following code:
<nav class="menu "role="navigation">
<a href="#" onclick="loadViews(1)"><span>Home</span></a>
<a href="#" onclick="loadViews(2)"><span>About Me</span></a>
<a href="#" onclick="loadViews(3)"><span>Skills</span></a>
<a href="#" onclick="loadViews(4)"><span>Book</span></a>
<a href="#" onclick="loadViews(5)"><span>Contact</span></a>
</nav>
(I have seen solutions using Javascript, I know the possibility of being disabled, but the site is for a specific publication and I want to take the risk.)
As you can see, it has a "hfer = '#'" reason: without this the: css active does not work correctly, and I do not intend to do a JS to change class in my menu and if you leave "href = ''" it reloads the whole page including the menu
Then the question is simple, when you click on any menu item, the sitelink "site.com.br" is "site.com.br/#", as I avoid that the "/ #" in the URL ? I am using php server (but if you want to pass solutions with .htaccess together please feel free, because in the final project it might be hosted on an Apache server)
>