Retain asset query and fragment when generating hashed url