From 1d72a8f0ee57b6d3c5a4503e7d1cab0d5f1a3c1b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 21 Jun 2015 16:28:52 -0400 Subject: [PATCH] fix composer redirect on home page --- public/src/ajaxify.js | 4 ++-- public/src/modules/composer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index df17bc70e4..436a8249a1 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -30,7 +30,7 @@ $(document).ready(function() { ajaxify.currentPage = null; - ajaxify.go = function (url, callback, quiet) { + ajaxify.go = function (url, callback, quiet, search) { if (ajaxify.handleRedirects(url)) { return true; } @@ -43,7 +43,7 @@ $(document).ready(function() { apiXHR.abort(); } - url = ajaxify.start(url, quiet); + url = ajaxify.start(url, quiet, search); $('#footer, #content').removeClass('hide').addClass('ajaxifying'); diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 819ee7f734..1e32892617 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -313,9 +313,9 @@ define('composer', [ if (data.mobile) { var qs = '?p=' + window.location.pathname; - ajaxify.go('compose' + qs, function() { + ajaxify.go('compose', function() { renderComposer(); - }); + }, false, qs); } else { renderComposer(); }