Urls within components

When rendering component from application
render_component ({contoller =>‘component/controller’, action =>
‘SimpleAction’}, the call:
url_for ({controller => ‘component/controller’, action =>
‘SimpleAction’})
from that component produces /component/controller/SimpleAction.
But if we go to that url, call:
url_for ({controller => ‘component/controller’, action =>
‘SimpleAction’})
starts producing /component/component/controller/SimpleAction url…
(note /component/component/)
Is that right or may be it is a routing bug?