change url to slug type