setting the metadata: parsing the permalink