| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Making anchor tags (internal page linking) work with Clean URLs? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Making anchor tags (internal page linking) work with Clean URLs?
Hey all,
A problem I've just encountered is that anchor tags aren't working correctly and I think this is related to using clean urls. For example, when viewing a product, I want to have a link that says "Jump to Reviews" above the fold which would link like this <a href="#reviews">Jump to Reviews</a> And right near the beginning of my reviews section down the page is <a name="reviews></a>Customer Reviews ... With clean urls, instead of the link being interpreted as http://www.mydomain.com/current-page.html#reviews it's http://www.mydomain.com/#reviews. Also, if I go ahead and hard code it as <a href="{$http_location}/{$product.clean_url}.html#reviews> the page refreshes then jumps down instead of jumping down directly. Any ideas of a workaround?
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Making anchor tags (internal page linking) work with Clean URLs?
Use <a href="current-page.html#reviews">. For product page for example use it like this
<a href="product.php?productid={$product.productid}#r eviews">Reviews</a>
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Making anchor tags (internal page linking) work with Clean URLs?
That worked perfectly. Thank you so much!
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Making anchor tags (internal page linking) work with Clean URLs?
what about a category page?
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Making anchor tags (internal page linking) work with Clean URLs?
<a href="home.php?cat={$cat}#reviews">Reviews</a>
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|