Handle slashed and slashless service roots
Handle slashed and slashless service roots

Make sure that we handle service urls that end in "service/" and "service" equally well (And also only replace it in final position!).

Fixes issue Christian Pich had.

Former-commit-id: 7dbce9297fa725787e38755c7aac725b33542729
julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine