aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-portal/www
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-portal/www')
-rw-r--r--mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js
index 9cf33401..0969c5c7 100644
--- a/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js
+++ b/mayor-orig/mayor-portal/www/skin/classic/module-portal/javascript/portal.jquery.min.js
@@ -3,7 +3,11 @@ $(function() {
$('#mayorbody a[href*="index.php?page"]:not([href*="sessionID"])').each(function( index ) {
l = $(this);
href = l.attr('href');
- l.attr('href',href+'&policy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid'));
+ if (href.includes("policy")) {
+ l.attr('href',href+'&origPolicy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid'));
+ } else {
+ l.attr('href',href+'&policy='+$('body').data('policy')+'&sessionID='+$('body').data('sessionid'));
+ }
});
});