Skillpedia
وسائل التواصل الاجتماعي75k · #2961

og-url-match

ما الذي تفعله

تتحقق هذه المهارة من أن og:url والرابط canonical يشيران إلى العنوان النظيف نفسه تمامًا. وهي موجهة لأصحاب المواقع الذين يريدون أعداد مشاركة دقيقة ومعاينات روابط متسقة.

متى تستخدمها

  • ✓عندما تطلب من الوكيل التأكد من أن وسوم المشاركة الاجتماعية ووسوم canonical متطابقة في كل صفحة.
  • ✓عندما تبدو أعداد المشاركة منخفضة وتشك في توزعها على نسخ مختلفة من الرابط.
  • ✓عندما تغيّر عنوان صفحة وتحتاج إلى تحديث وسوم canonical والوسوم الاجتماعية معًا.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-url-match/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك التأكد من أن وسمي og:url وcanonical في صفحاتي متطابقان تمامًا؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقارن الوكيل قيمة og:url مع الرابط canonical في كل صفحة. وعند الاختلاف في البروتوكول أو النطاق أو المسار أو معاملات الاستعلام، يضبط og:url ليطابق عنوان canonical ويزيل معاملات التتبع.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

OG URL Match

When og:url doesn't match the canonical URL, social platforms track share counts separately for each URL variant—published share counts get split across multiple URLs and appear lower than they actually are.

Quick Reference

  • og:url must exactly match the <link rel='canonical-url'> URL
  • Use absolute HTTPS URLs for both og:url and canonical-url
  • Mismatched URLs cause social platforms to aggregate share counts on the wrong URL
  • og:url should be the clean canonical URL without tracking parameters

Check

Compare the og:url meta tag value with the <link rel='canonical'> href value. Both must be identical absolute HTTPS URLs. Flag any page where they differ, either in protocol, domain, path, or query string.

Fix

Set og:url to exactly the same absolute HTTPS URL as the canonical tag. Remove any UTM parameters, session IDs, or tracking tokens from og:url. If no canonical tag exists, add one and set og:url to match it.

Explain

Social platforms use og:url as the canonical identifier for aggregating share counts and comments. If og:url differs from the canonical tag, shares on the page URL and shares of the og:url accumulate separately, making your content appear less popular than it is and creating attribution confusion.

Code Review

Compare the value of <meta property='og:url' content='...'> with the value of <link rel='canonical' href='...'>. They must be identical character-for-character. Check for: different protocols (http vs https), www vs non-www mismatch, query string differences, trailing slash inconsistencies. Flag any page where the two values differ.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/og-url-match

الأسئلة الشائعة

لماذا يجب أن يتطابق الوسمان؟

تستخدم المنصات og:url معرّفًا أساسيًا لأعداد المشاركات والتعليقات، فالاختلاف يقسّم هذه الأعداد.

هل يجب أن تظهر رموز التتبع في هذه الروابط؟

لا. تقول المهارة إنه يجب إزالة معاملات UTM والمعاملات المشابهة للتتبع من og:url.

ماذا لو لم تكن للصفحة وسم canonical؟

تقول المهارة إنه يجب إضافته وضبط og:url ليطابقه.

التفاصيل

الوصف الأصلي من المؤلف

Use when auditing Open Graph tags or investigating why social share counts appear low. Applies to any page with both canonical-url and og:url tags.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2961
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة