Route Exclusion
Use data-exclude to prevent the widget from appearing on specific pages and to skip those routes during crawling.
Usage
Provide a comma-separated list of path prefixes:
html
<script
src="https://widget.webnav.ai/widget/chat-widget.js"
data-base-url="https://yoursite.com"
data-exclude="/admin,/login,/dashboard"
></script>Behavior
- Routes matching any prefix in the list will not show the chat widget
- These routes are also excluded from crawling, so their content is never indexed
- Matching is prefix-based:
/adminmatches/admin,/admin/settings,/admin/users, etc.
Common Exclusions
| Route | Reason |
|---|---|
/admin | Admin panels contain internal data |
/login | Authentication pages are not helpful for AI context |
/dashboard | User-specific dashboards are irrelevant to public queries |
/api | API routes have no renderable content |
/checkout | Payment pages should not be indexed |
Example
Exclude multiple sections:
html
<script
src="https://widget.webnav.ai/widget/chat-widget.js"
data-base-url="https://yoursite.com"
data-exclude="/admin,/login,/checkout,/api,/internal"
></script>