refactor: revert, don't need to pass relative_path

This commit is contained in:
Barış Soner Uşaklı
2025-08-29 15:23:19 -04:00
parent 648c454303
commit f67265daa7
2 changed files with 2 additions and 8 deletions

View File

@@ -56,10 +56,7 @@ define('forum/login', ['hooks', 'translator', 'jquery-form'], function (hooks, t
success: function (data) {
hooks.fire('action:app.loggedIn', data);
const pathname = utils.urlToLocation(data.next).pathname;
const params = utils.params({
url: data.next,
relative_path: config.relative_path,
});
const params = utils.params({ url: data.next });
params.loggedin = true;
delete params.register; // clear register message incase it exists
const qs = $.param(params);

View File

@@ -83,10 +83,7 @@ define('forum/register', [
if (data.next) {
const pathname = utils.urlToLocation(data.next).pathname;
const params = utils.params({
url: data.next,
relative_path: config.relative_path,
});
const params = utils.params({ url: data.next });
params.registered = true;
const qs = $.param(params);