It can happen when a navigation bar link was added as an external link pointing to your own site's URL rather than as an internal link. Re-adding it as an internal link — by clicking "Page", searching for the title, and selecting the relevant page — resolves the issue.