david
(David Taylor)
9 أبريل 2026، 8:04ص
21
من الجيد معرفة أن الصور الرمزية تعمل مرة أخرى!
مثير للاهتمام، شكرًا لك! يبدو أننا لم نتعامل مع هذا الموقف بشكل صحيح لحزم highlightjs الخاصة بنا، وهو السبب في ظهور أخطاء في وحدة التحكم في موقعك لأي مواضيع تستخدم كتل الأكواد. يجب أن يؤدي هذا إلى إعادته للعمل مرة أخرى:
main ← highlightjs-bundle
opened 08:01AM - 09 Apr 26 UTC
The Rails server may provide a relative URL like `/highlight-js/...`. Passing th… is directly to `import()` will cause it to be resolved on the domain of the current script, which may be on a CDN. Also, the lookup may be blocked with an error like "The base URL is about:blank because import() is called from a CORS-cross-origin script."
This specifically affects sites which are configured with S3 assets/CDN, but no application CDN.
This commit uses the `new URL()` constructor to ensure that relative bundle URLs are resolved from the forum domain. URLs which already include a CDN domain will be unaffected.
هذا لا علاقة له على الإطلاق بتغييرات الإضافة الأخيرة - لم يتغير هذا المنطق منذ سنوات. لكن من الجيد مع ذلك إصلاحه.
إعجاب واحد (1)
شكرًا لك وشكرًا لك على إلقاء نظرة متعمقة في هذا. سأقوم بتشغيل التحديث في أقرب وقت ممكن وأخبرك بالنتيجة.
إعجاب واحد (1)
فقط لنعلمك أننا قمنا بتطبيق التحديث، وكل شيء يعمل بشكل مثالي! شكرًا جزيلاً مرة أخرى على وقتك في التحقيق في هذا الأمر وعلى إبداعك في حله
إعجاب واحد (1)