fixing url for publish post