[Return to the template][HOME]
This replaces a feature that react-router-dom@6
lost in the upgrade from history@4
to history@5
. Basically, this restores the ability to have a window.location.hash
of #something
instead of #/something
.
In response to a core React Router dev's suggestion, @jtojnar showed that basename="" doesn't match the old hashType="noslash" feature. I asked for that option as a new feature, and I [implemented it][2]. This was closed, so I tried a sencod implementation, which also was not accpeted.
My third attempt involved two repositories, history
and React Router. I added a hashRoot
parameter to replicate the old hashType
behavior in history
. A react rou