https://stackoverflow.com/questions/45934285/check-if-router-url-contains-specific-string
public constructor(private router: Router ) { } … if (this.router.url.includes('/test/sort')) { // faire quelque chose }