{"id":5850,"date":"2021-01-27T20:29:28","date_gmt":"2021-01-27T20:29:28","guid":{"rendered":"https:\/\/musilda.cz\/?p=5850"},"modified":"2021-01-27T20:29:28","modified_gmt":"2021-01-27T20:29:28","slug":"chyba-v-pluginu-yoast-seo-pri-automatickem-sdileni-na-socialni-site","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/chyba-v-pluginu-yoast-seo-pri-automatickem-sdileni-na-socialni-site\/","title":{"rendered":"Chyba v pluginu Yoast SEO p\u0159i automatick\u00e9m sd\u00edlen\u00ed na soci\u00e1ln\u00ed s\u00edt\u011b"},"content":{"rendered":"\n

Pou\u017e\u00edv\u00e1te Jetpack nebo podobn\u00fd plugin na sd\u00edlen\u00ed p\u0159\u00edsp\u011bvk\u016f na Facebooku? A st\u00e1v\u00e1 se v\u00e1m, \u017ee je p\u0159\u00edsp\u011bvek sd\u00edlen se \u0161patnou url, nebo obr\u00e1zkem? M\u016f\u017ee to b\u00fdt zp\u016fsobeno chybou v pluginu.<\/p>\n\n\n\n

Od verze 14.+ Yoast za\u010dal pou\u017e\u00edvat indexables, viz. https:\/\/yoast.com\/yoast-seo-14-0\/<\/a>. Zjednodu\u0161en\u011b \u0159e\u010deno, plugin p\u0159id\u00e1v\u00e1 do datab\u00e1ze nov\u00e9 tabulky<\/strong>, do kter\u00fdch si ukl\u00e1d\u00e1 \u00fadaje, kter\u00e9 pak ji\u017e nemus\u00ed generovat. <\/p>\n\n\n\n

Probl\u00e9m vznik\u00e1 v tu chv\u00edli, kdy pou\u017e\u00edv\u00e1te n\u011bjak\u00fd zp\u016fsob automatick\u00e9 publikace \u010dl\u00e1nk\u016f na soci\u00e1ln\u00edch s\u00edt\u00ed. <\/p>\n\n\n\n

P\u0159i psan\u00ed \u010dl\u00e1nku si WP toti\u017e ukl\u00e1d\u00e1 automatick\u00fd koncept<\/strong>, p\u0159\u00edpadn\u011b, kdy\u017e si koncept ulo\u017e\u00edte sami, Yoast toti\u017e je\u0161t\u011b nezn\u00e1 SEO url a tak si ulo\u017e\u00ed v\u00fdchoz\u00ed odkaz<\/strong> ve tvaru https:\/\/vasedomena.cz\/?p=123. <\/p>\n\n\n\n

Z\u00e1rove\u0148 si ulo\u017e\u00ed i n\u011bjak\u00fd obr\u00e1zek z postu, proto\u017ee v\u011bt\u0161inou je\u0161t\u011b nem\u00e1te nastaven\u00fd n\u00e1hledov\u00fd obr\u00e1zek, nebo nen\u00ed vypln\u011bn v metaboxu pro soci\u00e1ln\u00ed s\u00edt\u011b.<\/p>\n\n\n\n

Jakmile \u010dl\u00e1nek publikujete, tak Yoast sice \u00fadaje p\u0159egeneruje, ale k odesl\u00e1n\u00ed na soci\u00e1ln\u00ed s\u00edt\u011b<\/strong> dojde d\u0159\u00edv, ne\u017e se tak stane. <\/p>\n\n\n\n

Nap\u0159\u00edklad JetPack vezme meta data, kter\u00e1 dostane od Yoasta, ale ta je\u0161t\u011b neupraven\u00e1. <\/p>\n\n\n\n

Tak\u017ee na soci\u00e1ln\u00ed s\u00edt\u011b jde \u0161patn\u00e1 url a jin\u00fd obr\u00e1zek ne\u017e zam\u00fd\u0161l\u00edte. <\/strong><\/p>\n\n\n\n

V kombinaci s cache se m\u016f\u017ee st\u00e1t, \u017ee bude chv\u00edli trvat, ne\u017e se v\u00e1m ve zdrojov\u00e9m k\u00f3du uprav\u00ed \u00fadaje na ty spr\u00e1vn\u00e9. <\/p>\n\n\n\n

K probl\u00e9mu m\u016f\u017eete naj\u00edt konkr\u00e9tn\u00ed issue<\/strong> na Githubu, kter\u00e1 byla zalo\u017eena ji\u017e v kv\u011btnu 2020 a od t\u00e9 doby nen\u00ed chyba opravena – https:\/\/github.com\/Yoast\/wordpress-seo\/issues\/15246<\/a>. <\/p>\n\n\n\n

Mo\u017en\u00e9 \u0159e\u0161en\u00ed probl\u00e9mu<\/strong> – vypnut\u00ed na\u010d\u00edt\u00e1n\u00ed ulo\u017een\u00e9ho odkazu z datab\u00e1ze pomoc\u00ed filtru wpseo_dynamic_permalinks_enabled – https:\/\/www.wp-plugin-api.com\/hook\/wpseo_dynamic_permalinks_enabled\/<\/a><\/p>\n\n\n\n

Vcelku mne to p\u0159ekvapilo, \u017ee v\u00fdvoj\u00e1\u0159i pluginu o probl\u00e9mu v\u011bd\u00ed, ale nijak ho zat\u00edm nevy\u0159e\u0161ili. P\u0159i publikaci v\u011bt\u0161\u00edho mno\u017estv\u00ed \u010dl\u00e1nku to je dost nep\u0159\u00edjemn\u00e9. Nav\u00edc se p\u0159\u00edstupy na \u0161patnou url objevuj\u00ed i v Google analytics a link rel=“canonical“ m\u00e1 tak\u00e9 \u0161patn\u00fd tvar.<\/p>\n","protected":false},"excerpt":{"rendered":"

Pou\u017e\u00edv\u00e1te Jetpack nebo podobn\u00fd plugin na sd\u00edlen\u00ed p\u0159\u00edsp\u011bvk\u016f na Facebooku? A st\u00e1v\u00e1 se v\u00e1m, \u017ee je p\u0159\u00edsp\u011bvek sd\u00edlen se \u0161patnou url, nebo obr\u00e1zkem? M\u016f\u017ee to b\u00fdt zp\u016fsobeno chybou v pluginu. Od verze 14.+ Yoast za\u010dal pou\u017e\u00edvat indexables, viz. https:\/\/yoast.com\/yoast-seo-14-0\/. Zjednodu\u0161en\u011b \u0159e\u010deno, plugin p\u0159id\u00e1v\u00e1 do datab\u00e1ze nov\u00e9 tabulky, do kter\u00fdch si ukl\u00e1d\u00e1 \u00fadaje, kter\u00e9 pak ji\u017e<\/p>\n","protected":false},"author":1,"featured_media":5851,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-5850","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-reseni-problemu"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5850"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=5850"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5850\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/5851"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=5850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}