Use rootPath instead of redirecting to /