fix for relative path problem in posts.