fix duplicated part of href url and fix #2137 and spent 2 hours on #2137