barisusakli 10 years ago
parent 8ff7ba82c2
commit 1bbce82c23

@ -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();
});

@ -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', {});

Loading…
Cancel
Save