Skip to content

"base" property is flaky #334

@birkskyum

Description

@birkskyum

Describe the bug

moved from

In the basic template of solid-start I tried setting the base prop on the router to /offset:

<Router
  base="/offset"
  root={(props) => (
    <MetaProvider>
      <Title>SolidStart - Basic</Title>
      <A href="/">Index</A>
      <A href="/about">About</A>
      <Suspense>{props.children}</Suspense>
    </MetaProvider>
  )}
>

and then when i click the link to the /about page it does direct to /offset/about which is great, but I get a "Page not Found", and when I refresh on /offset/about it can find that page. ( note: I applied solidjs/solid-start#1170 )

Expected behavior

expected the routes /offset/ and /offset/about to work every time.

Platform

  • OS: macOS

  • Browser: Chrome 120

    "@solidjs/meta": "^0.29.2",
    "@solidjs/router": "^0.10.5",
    "@solidjs/start": "^0.4.0",
    "solid-js": "^1.8.7",
    "vinxi": "0.0.54"

Additional context

No response

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