Extract item type from “params.what” to build file contents correctly
( turn `blogs/3430480/articles` into `articles`)