fixes generate link button by removing excess slash