Blog / Framer & site building /

How to audit links across a Framer CMS collection

One broken link in a CMS template can show up on dozens of pages. Nobody notices until a visitor clicks it.

Auditing links across a collection catches missing routes, old domains and mismatched relationships before visitors do. Keep a broken link apart from a deliberate external destination, or a route that needs different treatment.

Define what to check

Find out which collections include links: related articles, product references, calls to action, author pages or external resources. Note whether each is typed in by hand, generated from a relation or built by a template. One link field can affect many entries, so understand the source before editing records one by one.

Choose checks that match the risk. Test that the URL resolves, that the destination is relevant and that it’s public. For internal links, confirm the route uses the current domain and intended path. For external links, ask whether the destination is trustworthy and the text describes where it goes.

Audit at scale and sample manually

Export or crawl the collection where you can. Group results by status, destination domain and field. Repeated 404s may point to a stale content set, and many redirects to an old URL pattern. Not every redirect is an error, so follow it and check the destination is suitable.

Sample rendered pages, including entries with several links, missing optional fields and unusual slugs. A correct URL in the CMS can still appear with misleading anchor text or attach to the wrong item. Preview on mobile and with a keyboard. Links should be distinguishable and usable without a mouse.

Fix the source of the problem

If links are generated from CMS references, fix the relationship or template rather than patching the output. If editors type URLs by hand, give them a simple validation step and naming guidance. Review bulk updates carefully so a replacement doesn’t change unrelated domains or remove intentional external links.

Decide how to handle a retired destination. Point to a relevant replacement if there is one. Otherwise remove the link or say the resource is unavailable. Don’t redirect every broken URL to the homepage. Record the decision when you deliberately keep a link or exclude it from automated checks.

Prevent repeat issues

Add link review to your publishing and import workflows. Give critical resource links an owner and revisit them when a migration or campaign ends. A periodic automated check can find candidates, but someone should check the context before changing links.

A response code is useful evidence, but it isn’t the whole story. A link can return a normal page and still send someone to the wrong article. Another can redirect legitimately to an updated resource. Check technical status and editorial relevance separately.

For each repeated destination, work out why the collection uses it. Is it supporting evidence, the next article, a download or a contact action? That purpose helps you judge replacements. If the owner removed a resource, the sentence around it may need rewriting, rather than a convenient new URL pasted over the old one.

I go for links attached to important actions first, and links repeated through a template. One wrong button destination can affect the whole collection, and fixing lots of isolated text links first can leave the most visible problem untouched.

Inspect how the template builds the address

Check whether the link is a complete URL, a relative path or a value built from a slug. It matters during a domain change or a collection restructure. A correct slug can still lead to a wrong address if the template supplies an outdated section path.

Look at entries where optional relationships are empty. The page shouldn’t show a clickable blank card or a generic link implying related content exists. Test what happens when the referenced item is unpublished or removed, in your project’s actual configuration.

For links typed by hand, check for stray whitespace and pasted text. For generated links, inspect the shared rule. Fix the source that controls the rendered link, or the same defect may come back the next time an editor saves the entry.

Make replacement decisions in context

Open the source page and read the sentence around the link. A destination with a similar title may answer a different question or apply to a different product version. Check the anchor text still describes it accurately.

If no useful destination remains, remove or rewrite the reference. Don’t keep a link just because the paragraph once had one. The page should still make sense when the resource disappears.

Be careful with bulk replacement. I review a sample of matches and exclusions before applying the rule, then inspect the changed entries. A domain string may sit in an example or quoted text where replacing it changes the meaning. Keep an original export so an unintended edit can be undone.

Improve the editor’s next decision

Give editors a simple rule for choosing internal destinations and checking external references. Show where a link is controlled and how to preview the result. If several fields can supply similar-looking buttons, explain what each is for.

Keep a short exception list for resources excluded from automated checks, with reasons. An exclusion with no reason can hide a genuine failure later. Revisit the exceptions when the collection structure or the linked service changes.

Which collection field would you audit first if one broken link could appear across many pages?