sincle slash gets appended then this needs to set to empty rather than /
Merge pull request #1237 from rossriley/path-fixes

sincle slash gets appended then this needs to set to empty rather than /