my nav menu have 2 menus :
Home , Search Names
ie. from index page when i click student from Sub menu of Search names , it will redirects search.html after
if i click again teacher from search.html it will redirects to search.html/ search1.html rather then search1.html only.
it works normal only from index page.
i am inheriting the nav menu from index page to all of other pages.
what am i doing wrong ?
<div class="topnav">
<a href="">Home</a>
<div class="dropdown">
<button class="dropbtn">Search Names
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="search">student</a>
<a href="search1">teachers</a>
<a href="search2">non teaching</a>
</div>