Fixed the URI so /pages not required for pages