changing the routes to accept pages with slug names