add config variable to decide if we add or remove trailing slashes in URL