Skip to content

[v6] HashRouter 'hashType' prop is no longer supported #7703

@tannera

Description

@tannera

Version

6.0.0-beta.0

Test Case

Example working with Version 5.2: https://codesandbox.io/s/brave-bouman-xye62?file=/src/App.js
Example with 6.0 beta.0: https://codesandbox.io/s/friendly-wood-5tj4f?file=/src/App.js

Steps to reproduce

Using <HashRouter/> with the hashType="noslash" prop does not work in v6, only the default slash behaviour is supported in v6.

  <HashRouter hashType="noslash">
    <Routes basename="test">
      <Route path="/">
        <Home />
      </Route>
    </Routes>
  </HashRouter>

Expected Behavior

hashType prop would be supported just like in version 5.1 as described in https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/HashRouter.md#hashtype-string

There are no notices about hashType being deprecated anywhere.

Actual Behavior

always behaves as with <HashRouter hashType="slash"/> which was the default behaviour.

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