A miss a little check here. bugrURL is directly retrieved from the Controller and you don't know what it looks lie. At least you should check it does not end with /