Documentation Index

Fetch the complete documentation index at: https://docs.document360.com/llms.txt

Use this file to discover all available pages before exploring further.

Troubleshooting knowledge base widget issues

Prev Next

The Knowledge base widget can behave unexpectedly when configuration settings, content access filters, API keys, or JWT authentication are not aligned correctly. Most issues — from a floating icon that won't hide, to articles opening outside the widget, to the widget failing to load altogether — have a specific setting or credential mismatch as the root cause. This guide covers the most common widget issues and the steps to resolve each one.


Widget icon is still visible after mapping to a custom button

The default floating widget icon continues to appear on your Knowledge base site even after you map the widget to a custom button. This happens because the widget script renders the floating icon by default — mapping to a button does not automatically suppress it. You need to explicitly enable the Hide widget toggle in the widget's style settings.

Steps to resolve

  1. Navigate to Connections > Knowledge base widget in the left navigation bar. A list of created widgets appears.
  2. Hover over the desired widget and select the Edit icon.
  3. In the Configure & connect tab, expand the Style widget accordion.
  4. Locate the Hide widget toggle and turn it on.
  5. Select Save to apply the changes.
  6. Refresh your Knowledge base site to confirm the floating icon is no longer visible.

Settings for a widget including options to hide and customize its appearance.

The widget icon will no longer appear on the site, but the widget will continue to function as expected when triggered via your custom button.

If you are also using URL mappings to control widget visibility, refer to Customizing the Knowledge base widget using Custom CSS/JavaScript for advanced hiding options.


"Most searched articles" section is not visible

The Most searched articles section and the mapped article list for a specific URL are not appearing in the widget. This typically occurs when the Hide most searched articles toggle is enabled in the widget style settings — enabling this option hides both the Most searched articles section and any article list mapped to a specific URL.

Steps to resolve

  1. Hover over the desired widget and select the Edit icon.
  2. In the Configure & connect tab, expand the Style widget accordion.
  3. Locate the Hide most searched articles toggle and turn it off.
  4. Select Save to apply the changes.
  5. Refresh the Knowledge base site and confirm that the Most searched articles section and mapped articles list are now visible.

Settings for a knowledge base widget, highlighting the option to hide articles.

If the issue persists after disabling the toggle, double-check the article-to-URL mappings and review other display settings within the widget configuration.


Article links are redirecting to the KB website instead of opening within the widget

Article links inside the widget follow navigation behaviour based on the destination content type and the widget's content access scope. If a link opens outside the widget, the destination article's category is likely not included in the widget's content access configuration.

How link navigation works in the widget

Scenario Behaviour
Internal link to an article in the same standard workspace Opens inside the widget
Internal link to an article in another standard workspace Opens inside the widget when the destination workspace, language, and category are included in the widget's content access filters
Link to API documentation Always opens in a new browser tab
Destination article restricted by reader group permissions or widget filters Widget displays a restricted access state
Destination link cannot be resolved Widget shows a fallback state — no raw error is exposed

The widget does not honour the Open in new tab setting for same-domain links. These will always open within the widget.

Steps to resolve

If links are opening outside the widget when you expect them to open inside, add the missing category to the widget's content access configuration.

  1. Navigate to Connections > Knowledge base widget and select Edit.
  2. In the Configure & connect tab, expand Content access.
  3. Select Category and add the missing category.
  4. Select Save.
  5. Test the article links in the widget to confirm they now open within it.

The Workspace and Language dropdowns cannot be hidden

The Workspace and Language dropdowns are visible in the widget by default and cannot be removed through the current settings. To reduce confusion for readers, scope the widget to a single workspace using the content access filters — readers will only see content from that workspace, making the dropdowns less relevant.

Steps to reduce the impact

  1. Navigate to Connections > Knowledge base widget and select Edit.
  2. In the Configure & connect tab, expand Content access.
  3. Set the workspace scope to a single workspace.
  4. Select Save.

The widget is not loading on my Knowledge base site

If the widget fails to load and you recently rotated or updated your API key, the widget script is likely using an outdated key.

Steps to resolve

Update the API key in your widget installation script with the current key to restore functionality.


The widget is loading on a domain I did not intend

If the widget appears on domains you did not configure, your allowlist is likely empty. An empty allowlist means no domain restrictions are applied — the widget loads everywhere.

Steps to resolve

Add your intended domains to the allowlist. This blocks all other domains from loading the widget.


Ticket deflector is not appearing in the dropdown

Only ticket deflectors with Online status appear in the widget dropdown. If yours is missing, it is likely set to Offline.

Steps to resolve

  1. Navigate to Settings > Ticket deflector.
  2. Locate the relevant ticket deflector.
  3. Toggle its status to Online.
  4. Return to the widget configuration and confirm the deflector now appears in the dropdown.

Ticket deflector tab is not showing in the widget

If the ticket deflector tab does not appear in the widget, the Show ticket deflector toggle may be disabled, or the API key in your installation script may be outdated.

Steps to resolve

  1. Navigate to Connections > Knowledge base widget and select Edit.
  2. Confirm the Show ticket deflector toggle is enabled.
  3. Select Save.
  4. If the tab still does not appear, verify that the API key in your widget installation script is current and update it if needed.
  5. Refresh the page and confirm the tab is now visible.

Decision Tree links in the widget return a 404

Decision Tree links are not currently supported inside the widget. They will either open in a new browser tab or return a 404 error — this is a known limitation.

Workaround

Use standard article links in your ticket deflector content instead of Decision Tree links.

Decision Tree links cannot be made to open inside the widget at this time. There is no configuration change that will resolve this — only replacing the links will prevent the 404 error.


JWT authentication issues

The JWT client secret is configured at the project level and shared across all widgets in the project that have JWT authentication enabled. Regenerating the client secret from any widget, including a test or non-production widget, immediately invalidates the previous secret for all other JWT-enabled widgets in the same project. Any backend service not updated with the new secret will begin returning authentication errors and the widgets it serves will stop loading.

All other widget settings (embed code, content access, Custom CSS, Custom JavaScript, URL mappings) are specific to each widget and do not affect other widgets. The JWT client secret is the only exception.

Note:

If you maintain separate production and test widgets within the same project, treat client secret regeneration as a project-wide operation. Update every backend service that serves a JWT-enabled widget immediately after regenerating.

Image

Important:

Document360 displays the client secret only once, at the moment it is generated. It cannot be retrieved again after you close or navigate away from the page. If the secret was not saved at generation, regenerate it and update all backend services with the new value before closing the page.

Known limitation:
Client secret regeneration events are not currently captured in Team Auditing. If your widget stops authenticating and no team members recall making a change, audit logs will not identify who regenerated the secret or when. Regenerate the client secret, update all backend services, and verify the widget loads correctly.

If a Postman request or the live widget fails to return a valid token, use the table below to identify the cause and resolution.

Symptom Likely cause What to do
Response status is 401 Unauthorized Incorrect Client ID or Client Secret in the request Verify the credentials in the JWT section of the widget configuration. If you recently regenerated the secret, update it everywhere it is used.
Response status is 400 Bad Request Malformed payload or missing required fields Confirm that all required fields — username, readerGroupIds, widgetId, and projectId — are present and correctly formatted.
Widget loads but displays no content No valid reader group IDs in the token payload Confirm that the readerGroupIds values match existing reader group IDs in your Document360 project. At least one valid group ID is required.
Token is generated but the widget shows an error Authorize URL mismatch Ensure the Authorize URL in the portal matches the exact URL of the webpage where the widget is embedded.
Authentication fails after regenerating the client secret Old client secret still in use in one or more integrations Update the new client secret in all JWT-configured widgets, chatbots, and backend applications that use it.
Widget does not load at all; authentication endpoint returns HTTP 500 Client secret was regenerated in the portal but the backend service was not updated Navigate to Connections > Knowledge base widget > Edit > JWT and regenerate the client secret. Update the new secret in your backend authentication endpoint immediately. Until the backend is updated, Document360's token endpoint will reject all requests with HTTP 500 and the widget will not mount.
Authentication suddenly fails, but no changes were made to this widget The client secret was regenerated from a different JWT-enabled widget in the same project, including a test or sandbox widget. The secret is shared across all JWT-enabled widgets and chatbots in the project. Check whether any other JWT-enabled widget in the project had its client secret regenerated recently. If so, update the new secret in every backend service that serves a JWT-enabled widget in the project.

An HTTP 500 from the authentication endpoint means the backend service is using an outdated client secret. The widget will not load at all until the secret is updated in the backend — updating the portal configuration alone is not sufficient.


FAQ

I made changes in the widget settings but nothing changed on my site. What should I do?

Select Save in the widget configuration, then do a hard refresh of your page (Ctrl+Shift+R on Windows or Cmd+Shift+R on Mac). Some changes require the page cache to clear before they take effect.

I rotated my API key. Do I need to update it in more than one place?

Yes. If you use the API key in multiple widget installation scripts, ticket deflectors, or chatbot configurations, update each one individually. A single outdated reference will cause that surface to stop loading.

Can I hide the Workspace and Language dropdowns entirely?

No. These dropdowns cannot be removed from the widget UI. Scoping the widget to a single workspace via content access filters is the recommended way to reduce their visibility and relevance for readers.

The widget loads but shows restricted access for some articles. Why?

The destination article is either outside the widget's content access scope or restricted to a reader group that the current user does not belong to. Review the content access filters and reader group configuration in the widget settings.

Decision Tree links work on my KB site but not inside the widget. Is this a bug?

No. Decision Tree links are not currently supported inside the widget — this is a known limitation. They will open in a new tab or return a 404. Replace them with standard article links as a workaround.