remove duplicate slash
handle empty repository id correctly
use redmine terminologie