Function : windowIncludes

The windowIncludes is a case-sensitive function that is used to check if the current base url matches the list of supplied urls. Since index pages can either be empty (i.e "") or "index", a frontslash ("/") can be used to denote an index page.

The condition below tests if the current url address exists as the specified url

  if( windowIncludes('some/url') ){

     // current url is "some/url"

  }
                  


The condition below tests if the current url address exists in the list of the specified urls
  
  $validUrls = ['some/url1', 'some/url2']; 

  if( windowIncludes($validUrl) ){

     // current url is in accepted urls

  }