mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
duh #3192
This commit is contained in:
@@ -312,7 +312,7 @@ define('composer', [
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (data.mobile) {
|
if (data.mobile) {
|
||||||
var qs = '?p=' + window.location.pathname.substring(1);
|
var qs = '?p=' + window.location.pathname;
|
||||||
ajaxify.go('compose' + qs, function() {
|
ajaxify.go('compose' + qs, function() {
|
||||||
renderComposer();
|
renderComposer();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ 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) {
|
if (req.query.p && !res.locals.isAPI) {
|
||||||
return helpers.redirect(res, '/' + req.query.p);
|
return helpers.redirect(res, req.query.p);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.render('composer', {});
|
res.render('composer', {});
|
||||||
|
|||||||
Reference in New Issue
Block a user