View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005075||OXID eShop (all versions)||4. ------ eShop Core -------||public||2013-04-17 16:43||2015-12-01 10:47|
|Target Version||Fixed in Version|
|Summary||0005075: oxUtilsUrl->processUrl() returns unusable URL|
|Description||If any URL for GET request is processed by this function parameters are separated by "&" and not by "&" as HTTP requires it!|
This happens if URL is used programmatically and not in Smarty.
This problem is originally from function oxUtilsUrl->appendUrl()
|Steps To Reproduce||Call in php:|
echo oxUtilsUrl::getInstance()->processUrl(oxConfig::getInstance()->getShopUrl(), true, array( 'p1' => 1, 'p2' => 2, 'p3' => 3 ));
|Additional Information||processUrl is used e.g. in oxConfig->getShopCurrentUrl() and many other places|
|Tags||No tags attached.|
|PHP Version||Not defined|
|Database Version||Not defined|
Reminder sent to: mpienkny
What is meant by this : "&" and not by "&" ?
As another note, processUrl is meant for forming urls for HTML code, hence it does not remove & if that's the issue. If you want to form urls with &, processUrl function will not help.
I try cheat the ticket system - I wrote (without spaces)
" & a m p ; " a n d n o t b y " & " ?
Okay, and how could I get the Shop home url ?
yeah, noticed it as plain html in mail, that it was indeed correct, just html displays it this way.
Shop home url can be retrieved by calling getShopCurrentUrl, like you mentioned it. It builds it from shop url defined in config and adds index.php at the end. It doesnt use any extra parameters. You might consider looking into redirect usages, if you need to go to a certain formed url. It should even work with processUrl processed urls.