These fields are similar to the URL fields when inserting a link in a WYSIWYG, but have some additional
limitations when linking to internal content. See below for guidelines for using these fields properly.
Note that internal links in structured fields are an area we are looking to improve in future
development.
Linking to Internal Pages
For internal pages, much like the URL fields in a WYSIWYG, you can type or copy/paste the name of a
general page, news item, event, or profile, and Drupal will display a list of matches. Selecting a page
from this list will generate the dynamic link, formatted as “/node/###”.
However, unlike the field in a WYSIWYG, the structured link URL field will only display a maximum of
ten matching pages (see screenshot). This means that if there are more than ten pages on our site with
the same title, you may not see your desired match in the displayed list.
In these cases you will not be able to use the dynamic link, and will need to manually retrieve the
appropriate URL.
1. In a separate tab or window, navigate to the page you want to link to on the GC site.
2. Copy the page URL from the address bar in your browser
3. Paste this URL into the “URL” field.
Note that although not as secure as dynamic links, direct links are still somewhat insured against future
breakage, as Drupal automatically create an alias (a form of redirect) if the page URL changes. This
allows the page to remain reachable at its old URL. However, because these aliases can still break due
to accidental edits or removal, we recommend using the dynamic link format as much as possible.
Linking to Internal Documents
Unlike in a WYSIWYG, the URL field in structured links will not include documents in the autocomplete
list (see screenshot).
To link to document from one of these fields, you will need to manually retrieve the direct URL from
the media library (see screenshots):
1. Open the Drupal Media Library in a separate tab or window (hover over “Content” in the
toolbar, then click “Media Library”)
2. Use the search and/or filter options to find the document you would like to link to. (see our
Media Library guide for tips on finding media assets in the library)
3. Click on the document name to open the edit screen for the document
4. Right click on the filename in the middle of the screen and select Copy Link to copy the
document URL
5. Paste this URL into the “URL” field
Note that this link will not automatically update if the document is renamed or replaced with a
different version. You will need to manually update the link with the new document URL in these cases.