Use basePath everywhere.