larrymyers / react-mini-router

A minimal URL router for React.js
MIT License
282 stars 38 forks source link

fix: <a href="#!/anything">link</a> don't work #63

Closed em92 closed 7 years ago

em92 commented 8 years ago

If you try to click <a href="#!/anything">link</a>it will navigate to "#!/", but it must navigate to "#!/anything". This commit fixes this problem.

larrymyers commented 7 years ago

Closing. The purpose of handling pushState vs hash urls transparently means you can always use normal non-hash urls in hrefs.

ex: link will automatically route to #!/anything if the router is configured to use hash urls.