Fix to friendly url mapping that caused parent to be lost