userootpath
Type: boolean
Default: false
Context: prediction, questions, autocomplete
About this parameter
If the recommendation is to be filtered based on part of the current URL-path that the visitor is on. An automatic function to simplify so that the recommendations are filtered based on the current URL.
Userootpath is often used together with rootpathlevel parameter to control the depth of the URL path that is considered for filtering.
Usage examples
<div class="rek-prediction" data-userootpath="true"></div>
<div class="rek-prediction" data-userootpath="true" data-rootpathlevel="2"></div>
<!-- If rootpathlevel parameter is added to a page, and the page has this URL:
https://test.com/educationandchildcare/kindergartenandchildcare/kindergardenopeninghours.html
Only approved questions from the branch /kindergartenandchildcare/ and lower down the structure will
be recommended.
-->