diff --git a/sites/all/modules/esi/modules/esi_panels/esi_panels.module b/sites/all/modules/esi/modules/esi_panels/esi_panels.module
index 309326e..eb084cd 100644
--- a/sites/all/modules/esi/modules/esi_panels/esi_panels.module
+++ b/sites/all/modules/esi/modules/esi_panels/esi_panels.module
@@ -239,7 +239,15 @@ function esi_panels_url($pane, $display) {
   }
 
   // Add all the display arguments to the end of the URL.
-  $url .= '/' . implode('/', $display->args);
+  $add_args = TRUE;
+  foreach ($display->args as $arg) {
+    if (!is_string($arg)) {
+      $add_args = FALSE;
+    }
+  }
+  if ($add_args) {
+    $url .= '/' . implode('/', $display->args);
+  }
 
   // Always add the current page URL.
   $url .= '/' . base64_encode($_GET['q']);
