Fix #1965
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
- prevent create reop on existed path