diff --git a/lightbox2_handler_field_lightbox2.inc b/lightbox2_handler_field_lightbox2.inc old mode 100644 new mode 100755 index 3612788e0eb4e9a65cf604cf7b6535ba2d8bde5c..c96c00190ae25111853f6f705da17549e9832f0f --- a/lightbox2_handler_field_lightbox2.inc +++ b/lightbox2_handler_field_lightbox2.inc @@ -124,8 +124,20 @@ class lightbox2_handler_field_lightbox2 extends views_handler_field { // We don't actually use the link, but we need it there for lightbox to function. if (empty($link)) { // Get the path name. - $path = isset($_GET['q']) ? $_GET['q'] : ''; - $link = url($path, array('absolute' => TRUE)); + $url = isset($_GET['q']) ? $_GET : ''; + $path = ''; + $params = array(); + + //Get the path and any parameters from the URL + foreach ($url as $key => $value) { + if ($key === 'q') { + $path = $value; + } else { + $params[$key] = $value; + } + } + + $link = url($path, array('absolute' => TRUE, 'query' => $params)); } // Get the token information and generate the value for the popup and the