Extract filename from href to build download url