Hello, basically javascript framework (react for example) can do routing for you in single web application
Another option for single page application, you can investigate address parameters and provide routing logic manually
Otherwise, in case of multi-page application, you should control it on your own with separate HTML + JS file for each page (but you can share some logic in common javascript files)