You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filtering with option values that contain an ampersand & are not urlencoded
Environment
PHP Version: 8.2
Magento Version: 2.4.6-p7
Tweakwise Version: 6.0.1 (also tested on 8.0.0)
Tweakwise Export Version: 7.0.1
Magento Deploy Mode: producten
Third party modules:
Steps to reproduce
Create filterable attribute in magento and give it value A & B, link it to a product and export it to Tweakwise
Assign product to category, enable TW layered navigation
Navigate to category, try to filter via layered navigation
Actual result
On applying the filter, the url is not encoded (https://example.com/clothing?brand[0]=A & B) whereas when I change the ampersand to %26 it works perfectly fine.
@mdevrees This only seems to happen if ajax filtering is turned off. Can you confirm that you have ajax filtering turned of in the magento tweakwise settings?
The fix will be included in the next release (though we're not sure of the exact timing yet). However, I suspect the current solution might cause issues when the URL strategy is set to "path." This means the issue will need further testing, and the fix may be adjusted if necessary.
Thanks for your patience! Let me know if you have any questions in the meantime. 😊
Issue Brief
Filtering with option values that contain an ampersand
&
are not urlencodedEnvironment
Steps to reproduce
A & B
, link it to a product and export it to TweakwiseActual result
https://example.com/clothing?brand[0]=A & B
) whereas when I change the ampersand to%26
it works perfectly fine.Expected result
Url encoded and products shown
Possible fix
This is not a complete fix however. When selecting other attribute values and removing the A+B one, there are still some strange things going on.
The text was updated successfully, but these errors were encountered: