Fix bug in the creation of the callback_url

Fix bug in the creation of the callback_url, using rstrip("/") to remove ending slashes if present in SITEURL, instead of removing the last character from it.