Check if router.url contains specific string? : <p>I have this :</p>

<pre><code>   if (this.router.url === '/test/sort') {

                    this.active = 0;
                }
</code></pre>

<p>Problem is that sometimes url will be <code>test/sort?procesId=11</code> and than it will not enter in if statement. Any suggestion how can i do that?</p>
