Looks like you may be running into the same situation as this post: Wierd "duplicated" site on custom domain
Personally, I always use hash routing from Anvil Extras. But if you wanted to stick with the navigation you have, the first line of code in your click handler could disable the navigation link/button, and the last line could re-enable it. That might cut down on double clicks causing the issue.