v1.18.x
barisusakli 10 years ago
parent 40408eb7a1
commit 8ff7ba82c2

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

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

Loading…
Cancel
Save