Better integration of subpath in components list

Hi,

if a link is like /resolveuid/UID/image_mini, the resolving of uid will fail. Here a better way in getting the uid