[bug 881598 ] Do url creation logic before publish happens
review fix
had to update to include s3 to generate the right url