fixed the problem of root links and other links will open in a new tab