From f67265daa78b80095fe197637e2bd61400286795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 29 Aug 2025 15:23:19 -0400 Subject: [PATCH] refactor: revert, don't need to pass relative_path --- public/src/client/login.js | 5 +---- public/src/client/register.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/public/src/client/login.js b/public/src/client/login.js index e2495fb07f..f7508b8ec2 100644 --- a/public/src/client/login.js +++ b/public/src/client/login.js @@ -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); diff --git a/public/src/client/register.js b/public/src/client/register.js index ca86be35f0..f989901e7b 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -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);