Also close sidebar when clicking on the "View" link.

Previously the page was reloaded, resulting in the same closed sidebar. This is obviously faster though.