can i make the products links ABSOLUTE?
on search.php line 193
$searchresults["products"][$k]["productHREF"] = "product/".urlencode(tapestry_hyphenate($product["name"])).".html";
i have a new line on my config.php
$config_domainurl = "http://example.com";
but inserting a $config_domainurl before the
$searchresults["products"][$k]["productHREF"] = "$config_domainurl/product/".urlencode(tapestry_hyphenate($product["name"])).".html";
only gives me an output of
http://example.com/http://example.com/product/product_name.html
i want the output to be
http://example.com/product/product_name.html
pardon my many questions, i can barely program PHP :)
thank you.
atman
Hello Atman,
That is because Price Tapestry prefixes the URLs generated in the code with the value of $config_baseHREF.
It should work if you just make:
$config_baseHREF = "http://example.com/"
instead of:
$config_baseHREF = "/"
That will have the same effect.
Cheers,
David.