mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-22 22:50:53 +01:00
closes #3192
This commit is contained in:
@@ -312,7 +312,8 @@ define('composer', [
|
||||
};
|
||||
|
||||
if (data.mobile) {
|
||||
ajaxify.go('compose', function() {
|
||||
var qs = '?p=' + window.location.pathname.substring(1);
|
||||
ajaxify.go('compose' + qs, function() {
|
||||
renderComposer();
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -129,6 +129,10 @@ 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);
|
||||
}
|
||||
|
||||
res.render('composer', {});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user