Fix basePath url