From c9237fedc9013a503b42fe7002a246cc9ed9b0eb Mon Sep 17 00:00:00 2001
From: Kevin Abel <kevin.abel.0@gmail.com>
Date: Tue, 17 Jun 2014 17:08:01 -0500
Subject: [PATCH] Add the building code to the link that wraps the static map
 image

---
 www/templates/staticgooglemapsv2/UNL/TourMap/GoogleMap.tpl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/templates/staticgooglemapsv2/UNL/TourMap/GoogleMap.tpl.php b/www/templates/staticgooglemapsv2/UNL/TourMap/GoogleMap.tpl.php
index 52832d4f..f048bf34 100644
--- a/www/templates/staticgooglemapsv2/UNL/TourMap/GoogleMap.tpl.php
+++ b/www/templates/staticgooglemapsv2/UNL/TourMap/GoogleMap.tpl.php
@@ -10,4 +10,4 @@ $url = UNL_TourMap::addURLParams('http://maps.google.com/maps/api/staticmap', $m
 $url .= '&' . $context->getRawObject()->getEncodedStyles(true);
 
 ?>
-<a href="<?php echo $controller->getURL(); ?>" title="Go to the full featured UNL campus maps"><img alt="UNL Campus Map" src="<?php echo htmlentities($url, ENT_QUOTES); ?>" /></a>
+<a href="<?php echo $controller->getURL() . (isset($context->options['code']) ? $context->options['code'] : ''); ?>" title="Go to the full featured UNL campus maps"><img alt="UNL Campus Map" src="<?php echo htmlentities($url, ENT_QUOTES); ?>" /></a>
-- 
GitLab