I have an angular 4 application with router-link and it works fine. My root is localhost:4000. when I click on routerlink it will take me to something like localhost:4000/cts and everything works fine as expected. My problem is, if my user bookmark the localhost:4000, they can return to it. If they bookmark after the click on anything on the routerlink, it will saved as localhost:4000/cts rather than just the localhost:4000 which will load the index page. When they come back with localhost:4000/cts, i get a cannot get Cannot GET /cts.
How do I configure the app so that it will load correctly?
here is my routes.
const ROUTES : Routes = [
{path: '',component: ShopFloorStopLight},
{path: 'cts',component: CTS },
{path: 'scurve',component:SCurve}
]