diff --git a/facebook_comments.module b/facebook_comments.module
index 68a1cc8..ab967ad 100644
--- a/facebook_comments.module
+++ b/facebook_comments.module
@@ -350,7 +350,7 @@ function facebook_comments_display($width, $amount, $fluid = 0) {
   }
   // Generate the URL
   global $base_url;
-  $url = $base_url . '/' . drupal_get_path_alias($_GET['q']);
+  $url = $base_url . drupal_get_path_alias(request_uri());
   // Add user defined settings
   $style = variable_get('facebook_comments_style', 'light');
   $output = '<div id="fb-root"></div>
