fix for ending slash on links