Add a link to a page
This topic explains how to configure components previously built with Content Editor. To learn about components built with Components instead, visit the Components documentation.
In the page builder, you can add links to a page using the Link list component, for example.
In a Link component, you can insert one of the following types of links:
-
An external link - to a URL outside your site
-
An internal link - to a page in your instance
NoteWhen you create an internal link, Sitecore uses the item ID to identify the item. This means that the link is not broken if you rename the item or restructure your site.
-
A media link - to a media item from your Media library or a Content Hub asset if you have connected Content Hub DAM to your Sitecore instance.
To edit a link:
-
In a page containing a link, click on the link you want to modify.
-
In the right-hand pane, in the Link type field, click the drop-down menu and select the link type.
-
In the Link text field, enter the text that you want to appear as a hyperlink in your published content.
-
Specify what you want to link to:
-
For an external link, enter a link text and the URL.
-
For an internal link, enter a link text, then click Browse and select the page that you want to link to and click Add link.
NoteWhen you select a page, if Context language is selected in the language selector, then no language parameter is saved with the link. The link will open the specified page in the language that is current when a visitor clicks the link.
Similarly, if you select Context site in the site selector, then no site parameter is saved with the link, and the site that is linked to depends on the location of the page in the content tree and how your sites are configured.
-
For a media link, enter a link text, then click Browse and select the media item or Content Hub asset that you want to link to. You can also upload new media if needed. Then click Add selected.
-
-
Edit the remaining fields as needed.
Field
Usage
Link title
Text displayed in a tooltip when a visitor hovers the cursor over the link.
URL query string
Parameters for the URL, such as language and site.
Anchor
To link to an anchor on an internal page, enter the anchor ID. (You must also insert the anchor.)
Open in new window
Select this option if you want the browser to open a new tab or window when a visitor clicks the link.
To remove the hyperlink, use the Clear link value button in the right-hand pane.