Convert absolute urls to relative for publish