Remote hashtag from close button

Remote hashtag from close button. When we click on it on a 1 page web application, it redirects to the main page