Skip to content

Can't redirect from query remote function #16716

@TGlide

Description

@TGlide

Describe the bug

When executing a query remote function with a redirect inside, on the top level of a layout or page file, the remote function fails to run.

Reproduction

https://github.com/TGlide/remote-function-query-redirect-repro

Logs

System Info

System:
    OS: Linux 6.16 CachyOS Linux
    CPU: (32) x64 AMD Ryzen 9 7950X3D 16-Core Processor
    Memory: 36.16 GB / 61.95 GB
    Container: Yes
    Shell: 4.0.2 - /bin/fish
  Binaries:
    Node: 22.18.0 - ~/.volta/tools/image/node/22.18.0/bin/node
    npm: 10.9.3 - ~/.volta/tools/image/node/22.18.0/bin/npm
    pnpm: 10.14.0 - ~/.volta/bin/pnpm
  npmPackages:
    svelte: ^5.0.0 => 5.38.7

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions