oembed links not working
-
By default, WordPress includes 2 oembed headers:
<link rel=”alternate” type=”application/json+oembed” AND <link rel=”alternate” type=”text/xml+oembed”When custom-permalinks is activated, the address is correctly replaced in the header.
However, when opening the included oembed links, a json oembed_invalid_url 404 response is generated.
However, when opening the oembed address with the original URL, the response is correctly generated.Example to reproduce:
original address: http://www.host.com/mycategory/mypost
custom permalink address: http://www.host.com/ThiIsMyPostgenerated oembed in page headers:
<link rel=”alternate” type=”application/json+oembed” href=”http://www.host.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.host.com%2Fmycategory%2Fmypost”>
<link rel=”alternate” type=”text/xml+oembed” href=”http://www.host.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.host.com%2Fmycategory%2Fmypost&format=xml”>result from http://www.host.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.host.com%2Fmycategory%2Fmypost:
{“code”:”oembed_invalid_url”,”message”:”Not Found”,”data”:{“status”:404}}result from the original address with custom permalinks activated
http://www.host.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.host.com%2Fmycategory%2Fmypost:
{“version”:”1.0″,”provider_name”:”host.com”,”provider_url”:” ……….–remaining content removed–
-
Hi @manuluyten Sorry for writing back to you after a month and Thank you for reporting this issue.
I have fixed this issue and released an alpha version of the plugin that you can download from the Github for the testing purpose.
https://github.com/samiahmedsiddiqui/custom-permalinks/releases/tag/v2.0.0-alpha.1Please test and let me know your feedback.
Thanks and Regards,
SamiDear Sami,
Thank you for coming back on this and your fix.
given my shedule, I will not be able to test the change on short notice.
In any case, I disabled the oembed feature in functions.php.
I will see what I can do later on.
Regards,
Manu@manuluyten Thank you for your reply. Please wait for a while, few things are still pending once they all are done then I will officially release
v2.0.0, that actually has your fix.Sorry for inconvenience and thank you for your understanding.
Thanks and Regards,
Sami
The topic ‘oembed links not working’ is closed to new replies.