I came across an issue with an old wordpress site where the mobile menu did not close when a menu item link to internal page content because the url started with # hash.