Simplified subpage validation: if not specified or doesn't exist, use the first one defained
Updated comments
Logical order
URLs should not match e.g. locale/project/page/something...