adapting ajax call to the translated url