Skip to content

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: /admin matches /admin, /admin/settings, /admin/users, etc.

Common Exclusions

RouteReason
/adminAdmin panels contain internal data
/loginAuthentication pages are not helpful for AI context
/dashboardUser-specific dashboards are irrelevant to public queries
/apiAPI routes have no renderable content
/checkoutPayment 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>

DocQA — AI 智能客服