update base ref for url links