title: How to check a matching route that has params? ( in route guard)
body: <p>I have a route defined which has a query param called uuid</p>
  
  <pre><code>{path: 'is-protected/:uuid', component: protectedComponent, canActivate: [RouteGuardService]}
  </code></pre>
  
  <p>In  the route guard, i need to check if the url matches and route param (:uuid) is empty or not. If the route does not have the param, i need to redirect it to home route.
  I am trying using</p>
  
  <pre><code>if (state.url == 'is-protected'){
    if( query param exists){
      return true;
    }
    else {
        this.route.navigate(['/']);
    }
  }
  </code></pre>
  
  <p>This wont work because the state.url does not include the query param so it will never reach in this code block. </p>
  
  <p>Is there a way to check if the route including params exists and navigate accordingly?</p>