If your intention is to navigate to the specified URL as if the user had clicked the link try calling the DOM .click()
method instead of the jQuery .click()
method:
$('#mylink')[0].click();
The jQuery .click()
will call event handlers that you've bound but not cause the default click behaviour.