summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkamkejj2016-10-01 09:50:35 (GMT)
committerjoseph.olstad2016-10-01 09:50:35 (GMT)
commite5b08051d01a615b091fd6899dad4ab51759eb28 (patch)
tree85f6d45124c2c0482b4b7b0dfff15d384fc0d300
parentd5b5c1002078445d0654b367f870279dbae23d9b (diff)
Issue #1731332 by kamkejj: Views Lightbox trigger and exposed filter7.x-2.8
-rwxr-xr-x[-rw-r--r--]lightbox2_handler_field_lightbox2.inc16
1 files changed, 14 insertions, 2 deletions
diff --git a/lightbox2_handler_field_lightbox2.inc b/lightbox2_handler_field_lightbox2.inc
index 3612788..c96c001 100644..100755
--- 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'] : '<front>';
- $link = url($path, array('absolute' => TRUE));
+ $url = isset($_GET['q']) ? $_GET : '<front>';
+ $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