URL encoding not working in products page's item button
Description
The URL encoding on the products page's item button is not working as expected. This issue is causing the HTML structure of the button to become corrupted and display incorrectly.
Steps to Reproduce
- Navigate to the products page.
- Click on the item button.
- Notice that the URL encoding fails and the button's HTML becomes messy.
Expected Behavior
The URL in the button should be properly encoded, ensuring that the button's HTML remains intact and displays correctly.
Actual Behavior
The URL is not properly encoded, resulting in malformed HTML for the button.
Additional Context
Please include any relevant logs, browser information, or steps that might help further diagnose the issue. This may include how the URL is generated, any special characters in the button's data, and the environment under which this issue occurs.