Changed code slightly to allow user include '/' as the last character in the YouTrack URL