Added trailing slash option
The generated URL is suffixed with a slash if configured in Magento backend.