diff --git a/core/modules/contextual/js/contextual.js b/core/modules/contextual/js/contextual.js index 7f93a15..bacaeb5 100644 --- a/core/modules/contextual/js/contextual.js +++ b/core/modules/contextual/js/contextual.js @@ -55,7 +55,7 @@ .prepend(Drupal.theme('contextualTrigger')); // Set the destination parameter on each of the contextual links. - var destination = 'destination=' + Drupal.encodePath(drupalSettings.path.currentPath); + var destination = 'destination=' + Drupal.url(drupalSettings.path.currentPath); $contextual.find('.contextual-links a').each(function () { var url = this.getAttribute('href'); var glue = (url.indexOf('?') === -1) ? '?' : '&';