Fixing trailing slashes issue.