Fix missing basePath in localhost mode