go to appearance ->menu and select your main menu navigation then remove the menu item and put it back in using the side articles (where you have check boxes) menu it will link automatically.
if that doesn’t work try going to setting and in permalinks put default and save.
see if it works like that then if it does go back to the setup you had. and see if it still works