Href is not working when clicking category link. The menu is collapsed and it works for subcategories. The value is present in href but it collapses to subcategory.
<a class="nav-link collapsed" href="www.google.com" data-toggle="collapse" data-target="#id1" aria-expanded="false" aria-controls="#id1"> --category
<div class="collapse" id = "#id1">
<a class="nav-link" href="www.fb.com"></a> --subcategory1
<a class="nav-link" href="www.twitter.com"></a> --subcategory2
</div>
</a>
I don't know which if i change any class name it it will affect sub category(which is working fine).Please help.
Try to use the entire URL. For example https://www.twitter.com/ Also, Your first anchor tag isn't closing anywhere
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.