You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I do:
I am using <base href="/"> in the <head> of the html file and scrolling through the sections.
What I see:
it won't update the hash relative to the path but will use the base path to append the hash to.
This then goes to a complete new site because the router reacts to the route change.
What I expect:
The route should stay the same, but only the hash should change.
I disagree with your solution. It's enough to call the method of Manager.handleHashChange in react-router changes moment. For example, add call that function to listen route history, history.listen(() => Manager.handleHashChange())
What I do:
I am using
<base href="/">
in the<head>
of the html file and scrolling through the sections.What I see:
it won't update the hash relative to the path but will use the base path to append the hash to.
This then goes to a complete new site because the router reacts to the route change.
What I expect:
The route should stay the same, but only the hash should change.
Possible solution:
In https://github.com/gabergg/react-scrollable-anchor/blob/master/src/utils/hash.js it should also use the rest of the path to build the complete URL instead of just updating the URL.
The text was updated successfully, but these errors were encountered: