Possible explanations are:
- broken JS code, which is hard to trigger
- broken browser plugin
- empty link target (
<a href="">
) - a bot trying weird URLs for some reason
Undefined in URL is a typical sign of broken JavaScript. Unwanted reference to (logical) folder containing current document is often caused by IE's infamous bug – it interprets empty path not as current document, but as .
(containing folder), so empty link target works differently in IE and other browsers. Bot related errors are a story in itself – I could only add that it is not uncommon for them to make up both requested path and referer.
Two Stack Overflow questions supporting my conjecture about broken plugin:
- "undefined" randomly appended in 1% of requested urls on my website since 12 june 2012
- "undefined" and "cache/xxx" appened to URLs
Details on IE’s empty href bug (official resource linked there):