add global replace for candidate urls

Fix #226