Allow middle-clicking on local links

Adds a check to the click handler for local links which allows default browser behaviour if the user is not using the primary mouse button on the link.