When you delete a page, folder, image, or document file in Sitecore, any hyperlinks pointing to that item will break. To address this, Sitecore prompts you with the Broken Links dialog box, where you can choose how to handle the broken links. These are your options
Broken Links Dialog Options
When deleting an item, you’ll be prompted to choose one of the following actions:
Remove Links
Removes all hyperlink or image tags pointing to the deleted item.
- In the Broken Links dialog box, select Remove links, then click Continue.
- The message will display the number of links to the item you're deleting.
- The linked text remains on the page, but the hyperlink or image reference is removed.
- Select Continue.
- Save
your changes.
- Publish
the parent folder that contained the deleted item(s).
⚠️ Important: Any pages that contained or linked to the deleted item must also be republished for the changes to take effect.
Link to Another Item
Replaces all links to the deleted item with a new item of your choice.
- Select the Link to another item option, then the Continue button to permanently change every link to the item.
- Use the content tree to locate and select the new item to link to.
- Select Relink to replace the item.
- Save
your changes.
- Publish
the parent folder that contained the deleted item(s).
💡 Note: If you are replacing the deleted item with a new one, make sure to add the new item to Sitecore first.
Leave Links
Leaves all broken links or image references unchanged.
- Select the Leave links option, then the Continue button to leave every link to the item.
- A message will display with the number of links that will remain broken.
- The text and links will remain on the page but will no longer work.
- Save
your changes.
- Publish
the parent folder that contained the deleted item(s).
Edit Links Individually
Allows you to view and update each broken link one by one.
- Click Edit Links to open the list of affected pages.
2. For each listed page, choose one of the following:
- Edit - Opens the page in the Content Editor for manual editing.
-
Remove Link: Deletes the hyperlink or image reference, leaving the text in place.
⚠️ Warning: This action cannot be undone, and no confirmation message appears.
- Link to Other Item: Opens the Relink dialog. Browse and select a new item, then click Relink.
your changes.
- Edit - Opens the page in the Content Editor for manual editing.
4. Publish the parent folder that contained the deleted item(s).