Remove parts of the query paraemters in the url path for displaying resources.