Hello,
I have hyperlinks on my site that have an ampersand in them. The first time I save the page it saves fine. When I go in to the page and make any edits, including edits not involving the hyperlink, it changes the hyperlinks. Here is an example:
https://tds.ms/OE/Customer/studentTeen?companyId=hEMjibPYstA¶m=H
On the first save of the page it works fine. After any other changes to the page and a save it changes the value of the URL to this:
https://tds.ms/OE/Customer/studentTeen?companyId=hEMjibPYstA¶m=H
Please advise. Thank you! – Perry
Hey Perry,
I recommend using a link masking service such as https://goo.gl/
I tested using & to replace the & in your link, but after a couple of edits to was replaced with the other symbol.
I also tested this plugin which seems to work with the default editor, it doesn’t work with the advanced layout builder.
But it’s still not a good solution because the filter that WordPress puts in place it there to protect your site, which is why you won’t find a plugin on the WordPress plugin site that will do this.
I’m sure you could setup a 301 redirect, or write a js script, but in the long run it would just be easier to use a link shorter or masking service.
Best regards,
Mike