update urlBasePath on  change