I'm updating an old website with Angular, and one of the requirements I have to meet is that all routes should remain the same as they were (For SEO purposes).
Many of the old website's routes finish with a slash (Like /my/route/
), and some of them finish with a .html
, like /my/route.html
.
The issue is that routerLink deletes the final slash in every route finishing by a slash (My route is now /my/route
).
How can I make routerLink
to keep the trailing slash ?
A light example can be seen here : AngularTrailingSlash.