fixed way of getting url preview