Fix of #369 (Trim of forwarding slash in path)

Fixed issue #369