Modified  go to child/parent navigation to take into account previous navigations

See issue https://github.com/gitextensions/gitextensions/issues/2284.