fix redirect with end slash