Refactored plugin so that loader will run when a anchor is clicked then send user to selected route.