0

I'm stucked in my own solutionit's THE real problem what I wanted to solve. I defined my <base> URL in my PHP project, now all the hashed links

<ul class="nav nav-tabs nav-justified">
     <li role="presentation" class="active">
          <a href="#">Tab Handle</a>
     </li>
</ul>

are taking me to the base. It's not just the tab, it's everything: If I provide a hashed <nav> element, it's also taking me to the base URL (home URL).
And that's taking a page refresh so, which is another awkward situation.

How can I solve this?

Community
  • 1
  • 1
Mayeenul Islam
  • 4,532
  • 5
  • 49
  • 102

1 Answers1

1

Okay, I got a solution. Thanks to @Adam.

<base href="http://localhost/project/">
<ul class="nav nav-tabs nav-justified">
     <li role="presentation" class="active">
          <a href="javascript:">Tab Handle</a> <!-- it'll work like a hash link -->
     </li>
</ul>
Community
  • 1
  • 1
Mayeenul Islam
  • 4,532
  • 5
  • 49
  • 102