fix unable to enter menu links with fragments only (no query)

#3589 

See comment on issue for QA steps