diff --git a/composer.lock b/composer.lock
index ebf41e1ae0da87638aa5c4b5771002d29b519fb0..0eb0f60724fd8ae78a039a2df2e136161f0efbbb 100644
--- a/composer.lock
+++ b/composer.lock
@@ -7888,17 +7888,17 @@
         },
         {
             "name": "drupal/views_ajax_history",
-            "version": "1.1.0",
+            "version": "1.2.0",
             "source": {
                 "type": "git",
                 "url": "https://git.drupalcode.org/project/views_ajax_history.git",
-                "reference": "8.x-1.1"
+                "reference": "8.x-1.2"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.1.zip",
-                "reference": "8.x-1.1",
-                "shasum": "dd5f5256e139dff1371a109959dde70d593d4d1a"
+                "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.2.zip",
+                "reference": "8.x-1.2",
+                "shasum": "97c19dd21327025a58deec6200e008b3c794b022"
             },
             "require": {
                 "drupal/core": "*"
@@ -7909,8 +7909,8 @@
                     "dev-1.x": "1.x-dev"
                 },
                 "drupal": {
-                    "version": "8.x-1.1",
-                    "datestamp": "1559296088",
+                    "version": "8.x-1.2",
+                    "datestamp": "1562339886",
                     "security-coverage": {
                         "status": "covered",
                         "message": "Covered by Drupal's security advisory policy"
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index f909a29f4a6b5368e3764c7baa175cceed49a1f4..900a3170a89c93be49b0c26093f93e9bf84b9852 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -8139,18 +8139,18 @@
     },
     {
         "name": "drupal/views_ajax_history",
-        "version": "1.1.0",
-        "version_normalized": "1.1.0.0",
+        "version": "1.2.0",
+        "version_normalized": "1.2.0.0",
         "source": {
             "type": "git",
             "url": "https://git.drupalcode.org/project/views_ajax_history.git",
-            "reference": "8.x-1.1"
+            "reference": "8.x-1.2"
         },
         "dist": {
             "type": "zip",
-            "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.1.zip",
-            "reference": "8.x-1.1",
-            "shasum": "dd5f5256e139dff1371a109959dde70d593d4d1a"
+            "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.2.zip",
+            "reference": "8.x-1.2",
+            "shasum": "97c19dd21327025a58deec6200e008b3c794b022"
         },
         "require": {
             "drupal/core": "*"
@@ -8161,8 +8161,8 @@
                 "dev-1.x": "1.x-dev"
             },
             "drupal": {
-                "version": "8.x-1.1",
-                "datestamp": "1559296088",
+                "version": "8.x-1.2",
+                "datestamp": "1562339886",
                 "security-coverage": {
                     "status": "covered",
                     "message": "Covered by Drupal's security advisory policy"
diff --git a/web/modules/views_ajax_history/js/views_ajax_history.js b/web/modules/views_ajax_history/js/views_ajax_history.js
index 7b08a493fe60fdf808d9becca32ba75a45062266..a5058acde628f9a4e18190076a991d36c30e5165 100644
--- a/web/modules/views_ajax_history/js/views_ajax_history.js
+++ b/web/modules/views_ajax_history/js/views_ajax_history.js
@@ -113,7 +113,7 @@
       }
     });
 
-    url = url.split('?');
+    url = window.location.href.split('?');
     return url[0] + (query.length ? '?' + query.join('&') : '');
   };
 
@@ -204,7 +204,7 @@
   Drupal.Ajax.prototype.beforeSerialize = function (element, options) {
     // Check that we handle a click on a link, not a form submission.
     if (options.data.view_name && element && $(element).is('a')) {
-      addState(options, window.location.href);
+      addState(options, $(element).attr('href'));
     }
 
     // Call the original Drupal method with the right context.
@@ -222,7 +222,7 @@
    *   Object containing AJAX options.
    */
   Drupal.Ajax.prototype.beforeSubmit = function (form_values, element, options) {
-    if (options.data.view_name) {
+    if (options && options.data && options.data.view_name) {
       var url = original.path + '?' + element.formSerialize();
       var currentQuery = parseQueryString(window.location.href);
 
diff --git a/web/modules/views_ajax_history/views_ajax_history.info.yml b/web/modules/views_ajax_history/views_ajax_history.info.yml
index 5d35456f3f5622cbcbae3fea37420690815e3d92..5595d6d6bbd67d61c9a60aa0cbcff1dfb11e859e 100644
--- a/web/modules/views_ajax_history/views_ajax_history.info.yml
+++ b/web/modules/views_ajax_history/views_ajax_history.info.yml
@@ -6,8 +6,8 @@ package: Views
 dependencies:
   - drupal:views
 
-# Information added by Drupal.org packaging script on 2019-05-31
-version: '8.x-1.1'
+# Information added by Drupal.org packaging script on 2019-07-05
+version: '8.x-1.2'
 core: '8.x'
 project: 'views_ajax_history'
-datestamp: 1559296090
+datestamp: 1562339889