Context URLs explained

Would you like to make an article in your widget only available within certain /paths/ on your site?

By setting Context paths you can indicate the path in which a topic should appear. This is a way of associating a topic such as an Article or Walkthrough to a certain page on your site.

When would you use Context Paths?

By default, content appears in the Widget and is listed in the order it is created, though you can manually rearrange the topic list. With Context paths you can list content dynamically based on where a user is navigating in your application.

For example, you may have an important article which you want to prioritize in your widget when a user is at the path http://example.com/sites/create. In that case, you would add sites/create to the Context paths setting.

Now, when the user visits that path, the article is highlighted and placed on top of the list.

context paths

How to set the Context Paths

In the authoring tool, open a topic to edit. Click Manage under the topic title.

open the manage panel

This opens the Context Paths field.

context paths setting

  • If you want to enter multiple paths, separate them by new line (path per line).
  • Do not include the domain name.
  • You can use wildcards. e.g.,. sites/* will apply to all paths that start with sites/ including sites. It will match sites/create and sites/321/topics.
  • You can show only relevant topics in the widget. To do this, go to Site > Settings > Player Settings and check Filter by Context.

Important Note: URLs are case sensitive on this field

At the moment, it's not possible to exclude specific Topics from individual pages.

URL Context path
http://example.com/dashboard dashboard
http://example.com/project/12345/edit project/*/edit
http://example.com/project?key=value project?key=value
http://example.com/project?projectId=1&projectType=proposal *?*ProjectType=proposal
FAQ
widget