Repair id2path if a resource is displayed in context of another resource. Uses either the current +id placeholder or a custom id added as output filter option.