Indexability · Base element

Multiple mismatched base URLs

Several base elements with different values make relative link resolution unpredictable.

How this page is built

The head of this page contains two base elements. The first is this page’s own URL and the second is the home page. Browsers use only the first; a crawler that uses the second would resolve relative links, such as the skip link, against the home page.

Why it matters

When a page has two base elements with different values, browsers follow the first and ignore the second. A crawler or tool that reads the second one would resolve every relative URL on the page against a different address.

That can turn working links into broken ones, send relative links to the wrong section of the site, and make crawl reports disagree with what visitors actually see in the browser.

How to check it

View the source and list every base element in the head with its href. Compare where a relative link actually goes in a browser with where your crawl tool says it goes. Any difference shows which base element each tool is using, and how far the problem spreads.

How to fix it

Decide which base URL the page should really use, then remove the other element. In most cases the right answer is to remove both and use root-relative links, which do not depend on a base at all.

Search the templates for every place that writes a base element so the conflict cannot return, and validate the head with the W3C checker after the change.

Back to all tests