seo
seo copied to clipboard
% in SEO description field causes JS error
Description
In a CP product edit page that has an SEO field, if the description text contains a % character, it causes a JS error: Uncaught URIError: URI malformed
. As a result, other JS functions on the page won't work, e.g. deleting and reordering variants.
Steps to reproduce
- Open a product edit page with a % character in the SEO description field.
- Go to Variants tab and attempt to reorder variants — does not work.
- Open console to find JS error referenced above.
Additional info
- Craft version: Pro 3.5.10.1
- SEO version: Pro 3.2.6
- PHP version: 7.4.5
- Database driver & version: MySQL 5.5.5
Also seeing other issues involving character escaping. For example, quotation marks in the page description don't get escaped and can cause the meta description to be incorrect.
Quotation marks when copied over via dynamic syntax results in empty descriptionRaw
.
Same Issue here with the % character.
