Skip to content

action redirects fail with hashHistory (solid-router@next) #582

Description

@gianlazaro

Describe the bug

Submitting a form with an action that throws a redirect to paths() does not redirect. The constructed URL is malformed. Manually typing the path out ("/#page1") results in the same behavior. This issue only exists with the hashHistory setting enabled. I've included a minimal repro.

Temporary workaround is to disable hashHistory for now.

solid-js@2.0.0-beta.29
@solidjs/web@2.0.0-beta.29
@solidjs/router@2.0.0-next.13

Your Example Website or App

https://codesandbox.io/p/devbox/x64vy8

Steps to Reproduce the Bug or Issue

  1. Visit page (https://codesandbox.io/p/devbox/x64vy8).
  2. Submit the form.

Expected behavior

When a user submits the form, it should navigate to /#page1.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Chrome 151

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