The condensation of ethyl 4-(bromomethyl)cinnamate (I) with imidazole (II) by means of NaH in DMF give ethyl 4-(1-imidazolylmethyl)cinnamate (III), wich is hydrolyzed with NaOH in methanol - water, and acidified with HCl.
The condensation of ethyl 4-(bromomethyl) cinnamate (I) with imidazole (II) by means of NaH in DMF gives ethyl 4-(1-imidazolylmethyl) cinnamate (III), which is hydrolyzed with NaOH in methanol / water, and acidified with HCl.