Bifurcations and trajectories joining critical points