The main change is that it keeps the trailing slash. This helps auth feature to judge path permission accurately.