PageSourceSearch

https://www.vttresearch.com/modules/custom/vtt_misc/js/add-view-page-number-to-url.js?tltduu

js vttresearch.com collected 2026-09-24 08:40:41 UTC 539 bytes, 14 lines download raw bytes

1(function ($, Drupal) {
2  /**
3   * Update URL & canonical tag with view current page number.
4   */
5  Drupal.AjaxCommands.prototype.addViewPageNumberToUrl = function (ajax, response, status) {
6    var refresh = window.location.protocol + '//' + window.location.host + window.location.pathname + '?page=' + response.page;
7    window.history.replaceState(null, null, refresh);
8
9    const canonical = document.querySelector('link[rel="canonical"]');
10    if (canonical !== null) {
11      canonical.href = refresh;
12    }
13  };
14})(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.