What is the intent behind skipping location 2?
2 might be the frontpage, is the intention to skip frontpage? if so it should use the root_location_id and skip if location is the same as it.

ping @dpobel / @yannickroger