As per APEX default feature a navigation menu redirects to a page. But if someone requires to only expand the parent menu without navigating to a page then that can be achieved by below steps.
Step 1:
Set parent menu target to blank. Go to
shared component -> navigation menu -> desktop navigation menu