1/** 2 * @file 3 * External user login redurect ajax command. 4 */ 5(function ($, Drupal) { 6 if (Drupal.AjaxCommands) { 7 Drupal.AjaxCommands.prototype.ExternalUserLoginRedirect = function (ajax, response, status) { 8 var destination; 9 var $externalLoginLink = $('.header-widget .external-login'); 10 const urlParams = new URLSearchParams(window.location.search); 11 var destinationUrl = urlParams.get('destination'); 12 var destinationLink = $externalLoginLink.data('destination'); 13 14 if (destinationUrl) { 15 destination = destinationUrl 16 } else if (destinationLink) { 17 destination = destinationLink 18 } 19 20 if (!destination) { 21 window.location.reload() 22 } else { 23 window.location = destination; 24 } 25 } 26 } 27})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.