diff --git a/blockify.theme.inc b/blockify.theme.inc
index 6fbb150..5362f9c 100644
--- a/blockify.theme.inc
+++ b/blockify.theme.inc
@@ -12,8 +12,8 @@
 function theme_blockify_logo($variables) {
   $site_name = filter_xss_admin(variable_get('site_name', 'Drupal'));
 
-  // Strip the base_path from the beginning of the logo path.
-  $path = preg_replace('|^' . base_path() . '|', '', $variables['logo_path']);
+  // We only need the path.
+  $path = parse_url($variables['logo_path'], PHP_URL_PATH);
 
   $image = array(
     '#theme' => 'image',
