Linking to a specific location in content

In long pieces of content, including a table of contents that links to locations within the same document can be helpful. Alternatively, you may want to link to a specific section of an article from a link outside that content. While the WYSIWYG editor does not provide an explicit tool for setting up and referencing these anchor points, it can be done with a combination of Code View and inserting links.

Sections in this article: 

Who can do this?

  • Enterprise administrators
  • Workplace administrators
  • Space administrators
  • Members of the digital workplace with Write, Edit or Full access

Link to a specific location in content

Creating a link to a specific location involves adding an identifier to the location you want to link to and then referencing that location using a link. Setting up these links is something that you can do after you have written your article. Section headers or titles are ideal locations to act as a reference.

Apply an id to a destination

While you are editing your content in the WYSIWYG Editor: 

  1. Select the header or title that you want to link to.
    A selected header.
  2. While maintaining this selection, select More Misc and then  Code View. Your selected text will remain selected in Code View.
  3. HTML tags surround the selected text. In the screenshot above, these tags are <h2> </h2>, which indicates that this text is a second-level heading. Add id="description" within the first tag, where the description should be a brief identifier for this location. This example uses id="jobSatisfaction".
    Adding an id to the header element.

Create a link to a destination id inside the same content

  1. Select the text or image from which you want to link.
    Selecting what will become the link.
  2. While maintaining this selection, select  Insert Link. In URL, enter the id of the location you want to navigate to preceded by #. For example, #jobSatisfaction.
    Inserting a link.
  3. Select Insert.

Create a link to a destination id in another piece of content

  1. Copy the relative URL of the content you want to link to and append the location's id in that content preceded by #. For example, the relative URL linking to #jobSecurity would appear as:
    https://{your digital workplace}/HR/ProfessionalDevelopment#jobSatisfaction
  2. In the content that you want to link from, select  Insert Link. In URL, enter the URL from Step 1.
  3. Select Insert.