Testing and Publishing a Site > Checking links in a page or site > Fixing broken links |
When you check links in Dreamweaver, the Link Checker dialog box appears with a report of broken links, external links, andif you chose to check the entire siteorphaned files.
You can fix broken links and image references directly in the Link Checker dialog box, or you can open files from the list and fix links in the Property inspector.
To fix links in the Link Checker dialog box:
1 | In the Broken Links column of the Link Checker dialog box, select the broken link. |
A folder icon appears next to the broken link. | |
2 | Click the folder icon to browse to the correct file to link to, or type the correct path and file name. |
3 | Press Tab or Enter. |
If there are other broken references to this same file, a dialog box appears prompting you to fix the references in the other files as well. Click Yes to have Dreamweaver update all the documents on the list that reference this file. Click No to have Dreamweaver update the current reference only. | |
Note: If Enable File Check In and Check Out is turned on for the site, Dreamweaver attempts to check out files that require changes. If it cannot check out a file, Dreamweaver displays a warning dialog box and leaves broken references unchanged. See Using Check In/Check Out.
To fix links in the Property inspector:
1 | In the Link Checker dialog box, double-click an entry in the File column. |
Dreamweaver opens the document, selects the offending image or link, and highlights the path and file name in the Property inspector. (If the Property inspector is not visible, choose Window > Properties to open it.) | |
2 | To set a new path and file name, click the folder icon to browse to the correct file, or type over the highlighted text. |
If you are updating an image reference and the new image appears at the incorrect size, click the W and H labels in the Property inspector or click the Refresh button to reset the height and width values. The W and H labels change from bold to normal type. | |
3 | Save the file. |
As links are fixed, their entries disappear from the Broken Links list. If an entry still appears in the list after you have entered a new path or file name in the Link Checker (or after you have saved any changes you made in the Property inspector), it means that Dreamweaver cannot find the new file. The link is still considered broken.