Links · Link targets
Link with whitespace in the href
A link on this page has spaces and a line break around the address in its href, which some crawlers and tools mishandle.
How this page is built
The href of the link below starts with a space and ends with a line break. Browsers trim the whitespace, so the link still works for visitors, but some crawlers and tools do not.
Go to the link target page.
Why it matters
Browsers are forgiving and strip spaces from the start and end of an href. Crawlers and other tools are not always so careful, and may request an address with encoded spaces in it, which can return an error or create duplicate URLs.
Spaces inside an address are worse, because they produce broken or encoded links.
How to check it
Crawl tools report hrefs that contain whitespace. In the source, look for spaces or line breaks just inside the quotes of href attributes. They often come from templates that join text across several lines.
How to fix it
Remove the whitespace from the href. If a template builds the link, trim the value before writing it, and keep the whole attribute on one line.