URL Problems
-
Hi:
In my posts I have urls with querystrings and WordPress is now inserting htmlentities (ie #038)
So http://www.url.com/i=1&j=2is rendering
http://www.url.com/i=1#038;j=2I left an ampersand out.
This broke a bunch of stuff on my blog.
Any ideas?
Willy
-
WordPress is now encoding ampersands in my urls or links in posts and it is causing problems.
Willy
Any ideas, I think this is a bug or a change in behavior with 4.2.3
The post content is correct in the database.
Willy
Does the issue persist with all plugins deactivated? Where are you putting these URLs? Can you link to a page with the issue?
Thanks:
Search for link directly after, working
id=”evp-f20660315cea03d4b82db69b7138ef51-wrap”
Search for link directly after with entities, not working
id=”evp-00fd017c54bbd3fb912ed33d84cfbdfd-wrap”
http://www.jewelheart.org/digital-dharma/sundays-with-gelek-rimpoche-1/
One is in a post and one is not. This worked before the 4.2.3 update.
Willy
Not sure I see the link with the issue. What is the text of the link on that page: http://www.jewelheart.org/ ?
Thanks:
This is the first object embed.
<div id=”evp-f20660315cea03d4b82db69b7138ef51-wrap” class=”evp-video-wrap”></div><script type=”text/javascript” src=”http://jewelheart.org/video/framework.php?div_id=evp-f20660315cea03d4b82db69b7138ef51&id=MjAxNWdyc3QyMy0xLm1wNA%3D%3D&v=1437583421&profile=default”></script><script type=”text/javascript”><!–
_evpInit(‘MjAxNWdyc3QyMy0xLm1wNA==[evp-f20660315cea03d4b82db69b7138ef51]’);//–></script>The link is the framework.php link.
Here is the second one.
<div id=”evp-00fd017c54bbd3fb912ed33d84cfbdfd-wrap” class=”evp-video-wrap”></div><script type=”text/javascript” src=”http://jewelheart.org/video/framework.php?div_id=evp-00fd017c54bbd3fb912ed33d84cfbdfd&id=MjAxNWdyc3QwMS0yLm1wNA%3D%3D&v=1426085386&profile=default”></script><script type=”text/javascript”><!– _evpInit(‘MjAxNWdyc3QwMS0yLm1wNA==[evp-00fd017c54bbd3fb912ed33d84cfbdfd]’);//–></script>
In the last post I left links out since the forum inserts entities. You have to look at the source to see the difference.
Willy
Andrew:
Just to be clear, this is a real problem. Link tags are also having the ampersands turned into entities. So when you use the WordPress editor to render a link with a querystring the ampersands in the url are being transformed to entities.
Most browsers will look past this, but I wouldn’t call it desired behavior.
As I said, a link
So http://www.url.com/i=1&j=2will render
http://www.url.com/i=1#038;j=2in the source.
In a WordPress post:
<a href="http://www.url.com/i=1&j=2">Link Text</a>will render in the source
<a href="http://www.url.com/i=1#038;j=2">Link Text</a>Imagine the ampersand, the forum applies entities.
Willy
Urls are supposed to have entities escaped by the way. Otherwise it fails the W3C validator
Andrew:
Thank you, my concerns were alleviated by trying a
$_GETon both url styles.A plugin broke with this update, but its actually something I need to attend to anyway.
Willy
Do you know which plugin broke? Maybe we can forward you onto the right people
Andrew:
It’s ezvideo player. It could be that I need to update it, I believe it is not free, I inherited it.
I just looked, and I am not sure which ezvideo player it is. There could be more than one.
Thanks, Willy
The topic ‘URL Problems’ is closed to new replies.