![]() |
Anchoring using href="# and clean URL not working
I am trying to create a tabbed section on my product detail page and am using
<a href="#layer1">layer1</a> which works perfectly if I dont use clean URL However, if I enable clean URL, clicking on the link goes to - www.mydomain.com/#layer1 as opposed to www.mydomain.com/product1.html#layer1 Anything I am missing? I just want it to append the #layer1 to the current product URL as opposed to the homepage. Here is an excerpt of the code: <li class="active"><span class="leftspan-leftmosttab"></span><a href="#layer1"><span class="textspan">Recommended Products</span><span class="rightspan-middletab"></span></a><span class="clrb"></span></li> <li class=""><span class="leftspan-middletab"></span><a href="#layer2"><span class="textspan">Send to Friend</span><span class="rightspan-rightmosttab"></span></a><span class="clrb"></span></li> <li class=""><span class="leftspan-middletab"></span><a href="#layer3"><span class="textspan">Review</span><span class="rightspan-rightmosttab"></span></a><span class="clrb"></span></li> Any help is highly appreciated. Thanks so much for your time. |
Re: Anchoring using href="# and clean URL not working
Use href="product.php?productid={$product.productid}#l ayer1"
|
Re: Anchoring using href="# and clean URL not working
Quote:
Wouldn't that cause the page to be refreshed and take the user to the next visible tab? Isn't there a way to just make the other layer visible without having the page refreshed? Thanks so much for your help. |
Re: Anchoring using href="# and clean URL not working
Are you talking about tabs that are on top of each other and open when you click on ther title or bookmarks inside the page? If the first one that code won't work, for bookmarks - it will work, it won't reload the page
|
Re: Anchoring using href="# and clean URL not working
Quote:
I should have tried before making that statement. Sorry I doubted you:oops: I give it a shot and it worked like a charm. See it in action here - http://www.specialgifts2india.com/Mawa-Peda-Kesar.html Thanks once again. |
Re: Anchoring using href="# and clean URL not working
No problem, glad you got it working. Like the design. I see some issues in IE though
1. JS error for variants 2. Advance Search doesn't line up with search 3. Review tab is missing its left side when "send to friend" is active |
All times are GMT -8. The time now is 06:58 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.