I think this is a bug behavior, so I re-titled it as such. The local links shouldn’t really be treated differently here.
The bug is that this will onebox:
http://joes-redirector.com/redirect?url=discourse.example.com/uploads/default/40190/4e05693704bf6ba6.mp3
And this won’t:
/uploads/default/40190/4e05693704bf6ba6.mp3