Skip to content

Incorrect URL in preloaded remote function queries #14921

@RobertPietraru

Description

@RobertPietraru

Describe the bug

I have a slug that I access inside of a query remote function.

When I navigate to that page, using an , the remote function does not get the value of my slug, unless I refresh the page.

I may have misunderstood how remote functions work, please let me know, though I believe this is a pretty regular usecase

2025-11-13.16-06-04.mov

Reproduction

I've created a repository that shows this issue:

https://github.com/RobertPietraru/QuerySlugReproduction

Logs

System Info

System:
    OS: Linux 6.14 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
    CPU: (32) x64 Intel(R) Core(TM) i9-14900F
    Memory: 56.70 GB / 62.63 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 22.15.0 - /home/robert/.nvm/versions/node/v22.15.0/bin/node
    npm: 10.9.2 - /home/robert/.nvm/versions/node/v22.15.0/bin/npm
    pnpm: 10.14.0 - /home/robert/.nvm/versions/node/v22.15.0/bin/pnpm
    bun: 1.2.9 - /home/robert/.bun/bin/bun
  Browsers:
    Chromium: 141.0.7390.54
    Firefox: 145.0
    Firefox Developer Edition: 145.0
  npmPackages:
    @sveltejs/adapter-auto: ^7.0.0 => 7.0.0 
    @sveltejs/kit: ^2.47.1 => 2.48.4 
    @sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1 
    svelte: ^5.41.0 => 5.43.6 
    vite: ^7.1.10 => 7.2.2

Severity

We can work around it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions