Fix a bug where the search box appears when pressing links in the navigation