axis/axiscommerce — Issue #113: Fix url parsing/creation at readable adapter.
Author: vovayatsyuk
Created: 2011-12-15 14:47:36+00:00
State: open

At this moment we use the urldecode function over the received url from the customer. It's not a good solution.

The next url will not work 'example.com/store/url+with+space' if the database contains 'url+with+space' string as url.

Our logic will remove the plus elements and search the following url in the database: 'url with space' - which is not exist:

public function getKeywords()
{
$path = urldecode($this->getRequest()->getPathInfo()); // plus and other special symbols will be removed here
$keywords = explode('/', trim($path, '/'));
array_shift($keywords); //remove root catalog from array
return $keywords;
}

Possible solution: we should output the url on the frontend 'AS IS', without any modifications. Only the plain data from the catalog_hurl should be outputted as url. And we shouldn't filter the received url with the urldecode function.