Skip to content

Docs: frontend_path is applied only to assets referenced through rx.asset(); a literal src="/..." silently 404s #7261

Closed

Description

@masenf

Under frontend_path="/app", rx.image(src="/components/logo.svg") requests /components/logo.svg (404, the only 4xx of the run) while /app/components/logo.svg serves 200. This is by design: rx.asset() applies the prefix (AssetPathStr.__new__ → prepend_frontend_path, reflex/assets.py:95), and a literal src string is indistinguishable from an external or CDN URL, so it cannot be rewritten at compile time. Identical on 0.9.11.post1.

What is missing is the documentation. Nothing under docs/ mentions frontend_path together with assets, so adding frontend_path to an existing app silently breaks every literal-src image with no error anywhere but the network tab.

Ask: a note on the frontend_path config page and on the assets page saying that asset paths must go through rx.asset() (or be written with the prefix) when frontend_path is set.

Evidence: 0.9.12a1 pre-release QA FINDING-021 (refuted as a defect, kept as a docs task) in build_prod_export/ and FINDINGS.md.

Activity

  1. added theissue type on Sep 22, 2026
  2. linear-code commented on Sep 22, 2026

    @linear-code
  3. added
    release-train
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    release-train

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions