This commit is contained in:
barisusakli
2015-06-10 15:58:07 -04:00
parent 8ff7ba82c2
commit 1bbce82c23
2 changed files with 2 additions and 2 deletions

View File

@@ -312,7 +312,7 @@ define('composer', [
};
if (data.mobile) {
var qs = '?p=' + window.location.pathname.substring(1);
var qs = '?p=' + window.location.pathname;
ajaxify.go('compose' + qs, function() {
renderComposer();
});

View File

@@ -130,7 +130,7 @@ Controllers.register = function(req, res, next) {
Controllers.compose = function(req, res, next) {
if (req.query.p && !res.locals.isAPI) {
return helpers.redirect(res, '/' + req.query.p);
return helpers.redirect(res, req.query.p);
}
res.render('composer', {});