summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/contextual/js/contextual.js
diff options
context:
space:
mode:
authorNathaniel Catchpole <catch@35733.no-reply.drupal.org>2014-01-23 18:04:41 +0000
committerNathaniel Catchpole <catch@35733.no-reply.drupal.org>2014-01-23 18:04:41 +0000
commit5d4d6b1c80e3c91253bc015a7cbad1518e5b559d (patch)
tree4ff2c6124e2df523dda30a64b50ed6798af1c83c /core/modules/contextual/js/contextual.js
parent34a955321f02390ac123a4288de8e72d638ecf9a (diff)
downloaddrupal-5d4d6b1c80e3c91253bc015a7cbad1518e5b559d.tar.gz
drupal-5d4d6b1c80e3c91253bc015a7cbad1518e5b559d.zip
Issue #1979468 by Wim Leers, nod_, pwolanin, longwave, thedavidmeister, jessebeach, larowlan | catch: .active from linkGenerator(), l() and theme_links() forces an upper limit of per-page caching for all content containing links.
Diffstat (limited to 'core/modules/contextual/js/contextual.js')
-rw-r--r--core/modules/contextual/js/contextual.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/contextual/js/contextual.js b/core/modules/contextual/js/contextual.js
index c6400692fb4f..92ecbd7f23ef 100644
--- a/core/modules/contextual/js/contextual.js
+++ b/core/modules/contextual/js/contextual.js
@@ -55,7 +55,7 @@ function initContextual ($contextual, html) {
.prepend(Drupal.theme('contextualTrigger'));
// Set the destination parameter on each of the contextual links.
- var destination = 'destination=' + Drupal.encodePath(drupalSettings.currentPath);
+ var destination = 'destination=' + Drupal.encodePath(drupalSettings.path.currentPath);
$contextual.find('.contextual-links a').each(function () {
var url = this.getAttribute('href');
var glue = (url.indexOf('?') === -1) ? '?' : '&';