Decode the url retrieving state in a data attribute for collections.