Refactor url_path variable to slug