Skip to content

@_@astro characters in CSS URL causing redirect #16263

@atsbob

Description

@atsbob

Astro Info

New to Astro, so forgive me. I am testing a site template in a somewhat dummy set up for now before pulling data but noticed a file naming issue with the CSS is causing it to redirect. 

Here is the CF workers URL and my manual git is added as well for reference. 

https://gatechecked-astro.bradley-d53.workers.dev/post/

Astro 6.1.5 
CF adapter 13.1.8
Node 25.9.0
NPM 11.12.1

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

No response

Describe the Bug

I have imported my CSS file as per the documentation, but the file naming convention includes @ signs in the URL which results in it having to be decoded, resulting in a 307 redirect.

https://gatechecked-astro.bradley-d53.workers.dev/_astro/post@_@astro.arA8i2KH.css points to

https://gatechecked-astro.bradley-d53.workers.dev/_astro/post%40_%40astro.arA8i2KH.css

What's the expected result?

Based on other Astro demos I've seen, I thought the URL might look something like /_astro/post.hash.css to avoid the above.

Link to Minimal Reproducible Example

https://github.com/atsbob/astrotest

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)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions