<p>I'm not sure about this - the fact that clicking on the View tab closes the side bar is more of an accident that anything deliberate, so trying to make it more efficient is not really fixing anything.</p>

<p>As far as I can see with your patch the page will still reload when the view tab is clicked if the sidebar isn't open, so if your goal is to avoid reloads when view is clicked then this doesn't achieve it. A better solution would probably just be to disable the view tab link when you're already on the index page?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/257#issuecomment-17456704'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpuYScj4ttk_gzSp-4xSiwMMWFzZe2Wg6FiVmDylqmUDg.gif' height='1' width='1'></p>