mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 15:00:22 +01:00
refactor: revert, don't need to pass relative_path
This commit is contained in:
@@ -56,10 +56,7 @@ define('forum/login', ['hooks', 'translator', 'jquery-form'], function (hooks, t
|
|||||||
success: function (data) {
|
success: function (data) {
|
||||||
hooks.fire('action:app.loggedIn', data);
|
hooks.fire('action:app.loggedIn', data);
|
||||||
const pathname = utils.urlToLocation(data.next).pathname;
|
const pathname = utils.urlToLocation(data.next).pathname;
|
||||||
const params = utils.params({
|
const params = utils.params({ url: data.next });
|
||||||
url: data.next,
|
|
||||||
relative_path: config.relative_path,
|
|
||||||
});
|
|
||||||
params.loggedin = true;
|
params.loggedin = true;
|
||||||
delete params.register; // clear register message incase it exists
|
delete params.register; // clear register message incase it exists
|
||||||
const qs = $.param(params);
|
const qs = $.param(params);
|
||||||
|
|||||||
@@ -83,10 +83,7 @@ define('forum/register', [
|
|||||||
if (data.next) {
|
if (data.next) {
|
||||||
const pathname = utils.urlToLocation(data.next).pathname;
|
const pathname = utils.urlToLocation(data.next).pathname;
|
||||||
|
|
||||||
const params = utils.params({
|
const params = utils.params({ url: data.next });
|
||||||
url: data.next,
|
|
||||||
relative_path: config.relative_path,
|
|
||||||
});
|
|
||||||
params.registered = true;
|
params.registered = true;
|
||||||
const qs = $.param(params);
|
const qs = $.param(params);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user