Skip to content

If pollInterval detects a new version and I click on a not existent link it redirects sine fine #3957

@frederikhors

Description

@frederikhors

Describe the bug

After #3412 if I have an app with adapter-static with this config:

version: {
  name: Date.now().toString(),
  pollInterval: 5 * 1000,
}

if the polling detects the update and I click on a link for a page which doesn't exists instead of rendering the __error.svelte page it keeps in an infinite redirect.

Reproduction

https://github.com/frederikhors/iss-poll-404

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19044
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.50)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @sveltejs/adapter-static: 1.0.0-next.28 => 1.0.0-next.28
    @sveltejs/kit: 1.0.0-next.269 => 1.0.0-next.269
    svelte: 3.46.4 => 3.46.4

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions