Yes, your interpretation is right; no, it isn't grammatically acceptable. ]
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
TakaI think what the author is trying to say is 'when you change trains',Yes, that's most likely the intent.
Takabut is that 'when to' grammatically acceptable?Not here. No. when to clauses are indirect questions, hence, they function as noun phrases:
Taka'wh~ to/how to' as a subjectYes. No problem.