[#6894] Sanitize trailing slashes on base_url when generating hook

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>