kriasoft / universal-router

A simple middleware-style router for isomorphic JavaScript web apps
https://www.kriasoft.com/universal-router/
MIT License
1.7k stars 104 forks source link

support anchor? #95

Open linwalker opened 7 years ago

linwalker commented 7 years ago

does it support anchor? just like click on tag: <a href="#position1">jump</a>, the page scroll to the position of the tag: <a name="positon1">position1</a>

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45024689-support-anchor?utm_campaign=plugin&utm_content=tracker%2F18115217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18115217&utm_medium=issues&utm_source=github).
frenzzy commented 7 years ago

Yes. This is the native browser behavior, you do not need to do anything special with the router. Demo: https://jsfiddle.net/frenzzy/e6bbfxk2/