に行った時

when … went to

→ に
phrase Uncommon #19,559
when … went to Follows a destination and refers to the time someone went there.
JA: 京都に行った時、お寺を見ました。
EN: When I went to Kyoto, I saw a temple.

アリプール・モスクに行った時のこと思い出してよ

Try to remember when we went to the Alipur Mosque.

— バジュランギおじさんと、小さな迷子 (2015)

その鳥なら、沖縄に行った時に見たわよ。

I saw that bird when I went to Okinawa.