renable app redirect of trailing slashes.
Merge branch '4.0'