[bug 881598 ] Do url creation logic before publish happens