I am updating an old website with Angular, and one of the requirements I need to fulfill is that all routes should remain the same as they are (for SEO purposes).
Many of the old website routes end with a slash (Like /my/route/), and some of them end with .html, for example /my/route.html.
The problem is that routerLink removes the final slash at each end of the route with a slash (my route now /my/route).
How can I do routerLinkto save a trailing slash?
Here's a quick example: AngularTrailingSlash .
source
share