Indexability · Base element

Base URL malformed or empty

The base element href is invalid, which can break every relative link on the page.

How this page is built

The head of this page contains <base href="https://">. The URL has no host, so it cannot be parsed. In Chrome the relative links on this page then lead nowhere. The site's styles are written into the page itself, so they still apply.

Why it matters

The base element changes how every relative URL on a page is resolved, including links, images, stylesheets and scripts. When its href is malformed, browsers and crawlers have to guess.

Browsers do not agree on what to do with an unparseable base. Chrome is left with no usable base address, so relative links and stylesheets on the page stop working. Crawlers do not all behave the same way either. Some will build broken URLs from every relative link, which shows up as large numbers of broken links and can stop pages being discovered.

How to check it

View the source and search the head for a base element. Paste its href into a URL parser or the browser address bar to see whether it is valid. Then crawl the page and compare the resolved addresses of relative links with what you see when you hover over the same links in a browser.

How to fix it

Use a base element only when there is a real need for one. Most sites can remove it and rely on root-relative or absolute links instead.

If a base element is needed, give it a full absolute URL with a scheme, a host and a trailing slash, place it before any other element that uses a URL, and test a sample of relative links to confirm they resolve to the right pages.

Back to all tests