webgriffe / SyliusAkeneoPlugin

Plugin allowing to import data from Akeneo PIM to your Sylius store.
https://webgriffe.github.io/SyliusAkeneoPlugin/
MIT License
23 stars 2 forks source link

Use rawurlencode #140

Closed LucaGallinari closed 2 years ago

LucaGallinari commented 2 years ago

We must use "rawurlencode" instead "urlencode" as stated here Otherwise, if you have a product with whitespaces in its code, the plugin will try to fetch the product from Akeneo with this URL /api/rest/v1/products/AWC_AP64+BUS that will generate a 404, 'cause the correct URL is: /api/rest/v1/products/AWC_AP64%20BUS

Even the official API client uses the rawurlencode