Corrected the routes so that every page starts with 'posts/'.