diff --git a/securepages.module b/securepages.module
index f3b9c63..36bcaff 100644
--- a/securepages.module
+++ b/securepages.module
@@ -173,6 +173,8 @@ function securepages_goto($secure) {
   $url['absolute'] = TRUE;
   $url['external'] = FALSE; // prevent an open redirect
 
+  drupal_alter('securepages_goto', $url);
+
   // Check for the overlay.  Attempting to switch protocols during an XHR
   // isn't allowed by the browser's same-origin policy, so we must close the overlay.
   if (module_exists('overlay') && overlay_get_mode() == 'child') {
