I've looked into this problem, an it only happens because the dochowto doesn't exist. So its no big deal, as it will only build 'bad' URLs when a 404 error occurs.
I agree. The only way I got this to come up was through a 404. I'm sure I can fix it.. Just haven't had time, yet.
So, I committed what I believe to be the fix to this.
Goba: are you still able to produce broken URLs by clicking?
... or anyone else, for that matter..
Yep:
http://doc.php.net/php/hu/ (click on orphan notes) =>
http://doc.php.net/php/hu/orphan_notes.php (click on anything) =>
http://doc.php.net/pt/php/hu/orphan_notes.php (~) =>
http://doc.php.net/php/pt/php/hu/orphan_notes.php (~) =>
etc.
Is the code updated already on the site?
Goba