Permalinks contain unwanted space resulting in broken links

Question

I have just over 8k products listed on my wordpress site using WooCommerce.

Some product links work fine, vast majority for some reason have an unwanted space and – though ( -) resulting in 404, when i edit the link to remove these 2 characters the link becomes functional again.

The link appears like this inside wordpress editor-

www.mydomain.com/product/ -randomproduct

On the frontend, the link appears as this:

Www.mydomain.com/product/%20randomproduct

I’m wondering if theres a way for me to bulk edit all the bad links to remove the 2 problem characters and fix my links.

Thanks for any help received.

0
Ali22 2 months 0 Answers 19 views 0

Leave an answer