Prevent default <a> onclick event which add a # at the end of the url