joomla/joomla-platform — comment on commit 2e8d5415b6551679ec40189ba85ae571827a4a93
File:  line 0
By LouisLandry:

If it was only dealing with your example that would be fine, but this also handles the case of:

`http://example.com/index.php/path/to/custom/route.extension`
vs
`http://example.com/path/to/custom/route.extension`

Your point is valid, but it isn't *this* part of the application that would be handling that.

Cheers.