Strip excess '/' at the end of doc urls