UIkit: set switcher tab to current window hash
<p>I am asking <a href="https://github.com/uikit/uikit/issues/968#issuecomment-181015149" rel="nofollow">this question</a> here for a larger audience - this is something that is not documented.</p>

<p>Using tab switchers in UIkit for my signin form. This is the markup:</p>

<pre class="lang-html prettyprint-override"><code>&lt;ul class="uk-tab" data-uk-switcher="{connect:'#tabs'}"&gt;
    &lt;li id="session" class="uk-active"&gt;&lt;a href=""&gt;New Session&lt;/a&gt;&lt;/li&gt;
    &lt;li id="help"&gt;&lt;a href=""&gt;Help&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ul id="tabs" class="uk-switcher"&gt;
    &lt;li id="session"&gt;...&lt;/li&gt;
    &lt;li id="help"&gt;...&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>When the window hash is <code>#help</code>, I need to set the active tab to the "Help" tab. It seems I've accomplished this in part only, with the following:</p>

<pre class="lang-js prettyprint-override"><code>if (window.location.hash == '#help') {
    UIkit.switcher($('[data-uk-switcher]')).show($('li#help'));
}
</code></pre>

<p>But I'm missing a step somewhere, because now I can't go back to the "New Session" tab.</p>

<p>How is the method above overriding the built in behaviour? If so, the methodology is obviously incorrect - in which case, what is the correct way to do this?</p>