seo icon indicating copy to clipboard operation
seo copied to clipboard

% in SEO description field causes JS error

Open jmauzyk opened this issue 3 years ago • 3 comments

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

  1. Open a product edit page with a % character in the SEO description field.
  2. Go to Variants tab and attempt to reorder variants — does not work.
  3. 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

jmauzyk avatar Sep 16 '20 19:09 jmauzyk

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.

jmauzyk avatar Dec 02 '20 23:12 jmauzyk

Quotation marks when copied over via dynamic syntax results in empty descriptionRaw.

jmauzyk avatar Dec 03 '20 00:12 jmauzyk

Same Issue here with the % character.

image

forcehobbit avatar Dec 06 '22 15:12 forcehobbit