fix i18n bug when building url