From aa0405ee98c45a9bb25dd9959d899bbd56bc1b02 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 18 Jul 2025 17:07:23 +0530 Subject: =?UTF-8?q?favourite=20system=20and=20=E2=88=82etails=20on=20singl?= =?UTF-8?q?e=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/auth/auth.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') diff --git a/utils/auth/auth.go b/utils/auth/auth.go index f92e955..82b7353 100644 --- a/utils/auth/auth.go +++ b/utils/auth/auth.go @@ -54,6 +54,10 @@ func GetLoginURLWithRedirect(ctx *fiber.Ctx) string { return config.URL_LOGIN + "?next=" + url.QueryEscape(currentPath) } +func GetLoginURLWithNextField(ctx *fiber.Ctx) string { + return config.URL_LOGIN + "?next=" + url.QueryEscape(GetRedirectURL(ctx)) +} + func GetLogoutURLWithRedirect(ctx *fiber.Ctx) string { currentPath := ctx.Path() if queryString := string(ctx.Request().URI().QueryString()); queryString != "" { -- cgit v1.2.3