We flew from Taipei to Vancouver, where we had to go through the arrivals (not connections), customs, claim our baggage from the carousel, immigration, then drop off our baggage again to get onto the domestic flight to Montreal, in that order.
In other words, it doesn’t matter where your...