Skip to content

Custom 500 page does not include styles #13272

@Kumirei

Description

@Kumirei

Astro Info

Astro                    v5.3.0
Node                     v18.20.3
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

Chrome, Firefox

Describe the Bug

Regression from #8005
The 500 page does not include styles, either external or in a <style> tag, when rendered dynamically.
Styles for the page that responded with 500 are erroneously included.

What's the expected result?

I expect both linked external styles and <style> tag styles to be included in the 500 page, and styles from the page that caused the error to not be included.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-xaacpmav

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)feat: stylingRelated to styles (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions