There are two different ways you can link to websites outside of KnowledgeOwl:
- URL redirects, in which an entire article or category in your knowledge base redirects to another site
- links included within the text of an article
This article will walk you through working with both types of links.
URL redirects
In some cases, you may want clicking on an article or category in your knowledge base to redirect someone to an external website, such as your company's employee portal or help desk. To get this behavior, you'll set up the content as a URL redirect. You can set up redirects at the category and article level.
Category URL redirects: New category
You can create a new category from scratch as a URL redirect by checking the URL Redirect option when you create the category. To do so:
- Select + Add Category or + Add Subcategory.
- In the Add Category modal, enter a Category Title for your category.
- In What style of landing page do you want?, select URL Redirect.
- An External URL field appears. Enter the URL you want to redirect the category to in that field:
- If you select Quick Add, the category will be set to open the URL in the same tab. To set it to open in a new tab, select Add and Edit.
- When the category editor opens, use the Redirect Link Behavior controls to set whether opening this article will open the URL in a new tab or the same tab.
- Once you Save, anyone opening this category will be redirected to the URL you've entered in the Redirect URL, in the tab selected as the Redirect Link Behavior.
For example, this category will redirect to the KnowledgeOwl pricing page:
Category URL redirects: Update existing category
You can convert any existing category to a URL redirect by changing the Category Type dropdown. If your existing category has subcategories or articles in it, though, this may make it hard for people to navigate to that content.
Article URL redirects
To set up a URL redirect article:
- Create the article as you would normally.
- In the article editor, check the box under URL Redirect:
- Two new fields display under the Full Article title: Redirect URL and Redirect Link Behavior.
- Enter the URL you want this article to redirect to in the Redirect URL field.
- Use the Redirect Link Behavior options to control whether the URL redirect will Open link in new tab or Open link in same tab (default).
- Once you've filled out both fields, be sure to Save your changes.
Article content won't be displayed
As the warning on this page says, any content in the editor win;t be displayed when a URL redirect has been enabled. It will still be indexed for search though.
Insert link to another website in your article body
To insert links to other websites:
- Open the article for editing.
- Select the Insert Link button (two chain link icon) or press Ctrl + K on your keyboard:
- A modal opens where you can enter the information for your link:
- Enter the URL the site you wish to link to.
- Enter the Text for the link you'd like displayed in the article.
- Optional: Enter the text that will be displayed when a reader hovers their mouse over the link in the Title.
- Optional: If you'd like to reference this link as an anchor for quick navigation/to link from somewhere else, enter a non-space-containing Name for the link. You can link to this link using #Name at the end of the article's URL.
- By default, when a reader opens this link, the link will open in the same tab. To change this behavior, check the Open in new tab box.
- Once you've set the traits for your link, select Insert. Your link should now be visible. You can select the link to open the link context menu, which lets you open the link, edit it, and unlink it.
- Be sure to Save your changes.
Here's a sample link: See how amazing owls are
Save time with Text
If you already have a line of text in your article you want to use for a link, you can highlight that text before you select Insert Link. The Insert Link modal will autopopulate the Text field using the highlighted text.
Test links
Once a link is in an article, you can confirm that it's opening to the correct URL by opening it:
- Select anywhere in the text of the link to display the link context menu.
- In that menu, select the Open Link option.
Edit links to other websites
You can edit any link you've already inserted to update any of those link fields:
- Select anywhere in the text of the link to display the link context menu.
- Select the Edit Link option.
- Make any changes you need and select Update.
Remove links
If you want to remove a link from your article, we recommend unlinking first and then deleting the text (or not, if you want to keep the text!). To do so:
- Select anywhere in the text of the link to display the link context menu.
- Select the Unlink option (link icon with a slash through it).