fix missing trailing path separator in href if a resource path is empty

fix build

(0) -300 -100 -30 -10 -2 +2 +10 tip

mercurial