Remove ending slash in permalink