my web application is working on example.com and I want to pass an id to it like this example.com/165165
in angular router we just need $locationProvider.html5Mode(true). but i am not using any framework or router library. is there any simple way to do what angular router does?
I have seen HTML5 History API demo which is using history
object and listening popstate
to watch url changes. so you could go https://html5demos.com/history/first through the first link in the HTML5 History API but you can not access https://html5demos.com/history/first directly. I want to access it directly.
any help would be appreciated.