From 983092176c57d37f3f0fcbb0e0ffa48feba68582 Mon Sep 17 00:00:00 2001 From: wangyisheng Date: Mon, 4 Aug 2014 11:22:45 +0800 Subject: [PATCH] fix get fallback --- jquery.pjax.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.pjax.js b/jquery.pjax.js index 5cec3f28..f7268ef9 100644 --- a/jquery.pjax.js +++ b/jquery.pjax.js @@ -502,6 +502,9 @@ function fallbackPjax(options) { } var data = options.data + if (!data && method === 'GET' && url.indexOf('?') != -1) { + data = url.match(/\?(.+)$/)[1] + } if (typeof data === 'string') { $.each(data.split('&'), function(index, value) { var pair = value.split('=')