close mobile navigation when link is directed to an item on the same page