aimeos / ai-typo3

TYPO3 adapter for Aimeos web shops and e-commerce solutions
https://aimeos.org/TYPO3
GNU Lesser General Public License v3.0
72 stars 6 forks source link

[bug][2018.4.0][Backend]Wrong URL in the shop switcher #7

Closed guelzow closed 6 years ago

guelzow commented 6 years ago

Hi everyone.

When using:

the site urls on the left top do not let you switch back.

Our setup: TYPO3 8.7.10 TYPO3 Aimeos extension 18.4.0 PHP 7.2, 7.1 or 7.0

What is happening in the Code: The template file (here: page-standard.php) tries to overwrite the fixed settings of the Aimeos\MW\View\Helper\Url\Typo3 class, without success. --> https://github.com/aimeos/ai-typo3/blob/master/lib/custom/src/MW/View/Helper/Url/Typo3.php#L69 The second variable $params does not overwrite the fixed arguments.

Our workaround so far: $params = array( $this->prefix => array_merge($arguments, $params) ); The array_merge() allows the overwriting of the fixed arguments.

Tobi

aimeos commented 6 years ago

Thank you for your report! Can you create a pull request with your change?

aimeos commented 6 years ago

Fixed by https://github.com/aimeos/ai-typo3/pull/8