CSS של עמוד שפורסם לא מוצג בחזית האתר

סיכום מבוסס בינה מלאכותית

Users are reporting an issue with custom CSS not loading on published Published Pages following a recent update [chrismalone](/t/-/369642/1, /t/-/369642/6). The CSS, housed in a common.css file within a Theme Component, only appears when editing the pages in the admin panel chrismalone. Falco inquired if recent stylesheet changes were the cause, and RGJ confirmed the problem, noting that even the main theme’s CSS wasn’t loading and the <discourse-assets> section was missing from published pages’ code RGJ. david requested clarification on the CSS file location and subsequently identified a fix via a GitHub pull request david, which RGJ and chrismalone have confirmed resolves the issue.

מאז העדכון האחרון (אני חושב), יש לי בעיה עם הדפים שפורסמו שלי. יש לי CSS מותאם אישית עבור הדפים ברכיב ערכת נושא. ה-CSS תמיד נטען כהלכה. עכשיו, אני רואה את הסגנון CSS המותאם אישית רק כשאני בעורך של הדפים. כשאני מסתכל על הדפים בכתובת האתר שפורסמה שלהם, ה-CSS המותאם אישית לא נטען כלל.

מישהו ראה את ההתנהגות הזו? או שיש לו רעיונות מה יכול לקרות?

תודה על כל עזרה שתוכלו לתת!

2 לייקים

האם מישהו אחר חווה את זה?

@david אולי איזה שינוי אחרון באופן שבו אנחנו טוענים גליונות סגנונות?

לייק 1

Can you confirm which file that custom CSS is in? Or if it’s just an admin-panel-authored theme, which tab you’re using?

Yes, I can confirm, I am seeing the same behavior on today’s tests passed.

Only plugin stylesheets are being loaded.

Even the CSS from the main theme is not loaded.

Normal pages:

Published pages:

as you can see the entire <discourse-assets> section is not there. The plugin CSS is in the <head> instead and the CSS is nowhere to be found.

2 לייקים

זהו קובץ common.css בתוך רכיב ערכת נושא שאנו משתמשים בו עבור ה-CSS המותאם אישית וקודי ה-head שלנו.

2 לייקים

Thanks @chrismalone and @RGJ. This should be fixed by

https://github.com/discourse/discourse/pull/33179

3 לייקים

תודה לך דוד, זה אכן פותר את הבעיה!!!

3 לייקים

תודה רבה!!!

נושא זה נסגר אוטומטית לאחר 12 שעות. תגובות חדשות אינן מותרות עוד.