Correctly parse the id part of the subject path