[SalesForce] Lightning Community Button to External URL

I've been trying for the last few days to implement a lightning component on my knowledge community. The component should simply open a new tab/window to an external URL. I've tried it 100 different ways and every time it literally does nothing on click. I've tried to whitelist the URL but didn't help. Any help would be appreciated, not sure why nothing is working, I'm sure it's obvious to someone besides myself – see code below. Thanks!

Component:

<aura:component implements="forceCommunity:availableForAllPageTypes, force:appHostable" access="global">
    <button class="button" label="Open in New window" onClick="{! c.handleClick }">Contact Support</button>
</aura:component>

Controller:

({
handleClick : function(component, event, helper) {
        window.open("https://www.salesforce.com");
    },
})

Best Answer

Note that the Javascript is case sensitive,

I suggest you change from onClick to onclick.

Rewriting the code as below should work

<aura:component implements="forceCommunity:availableForAllPageTypes, force:appHostable" access="global">
   <button class="button" label="Open in New window" onclick="{! c.handleClick }">Contact Support</button>
</aura:component>