added root to links, so that they work for posts