aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-07-18 17:07:23 +0530
committerBobby <[email protected]>2025-07-18 17:07:23 +0530
commitaa0405ee98c45a9bb25dd9959d899bbd56bc1b02 (patch)
treec6b75124708f3a3ab5fecbdb454eb5f530dd2ffa /utils
parent821773b12c07a4bc23628e7d98ac4b34da1eb9e1 (diff)
downloadimageboard-aa0405ee98c45a9bb25dd9959d899bbd56bc1b02.tar.xz
imageboard-aa0405ee98c45a9bb25dd9959d899bbd56bc1b02.zip
favourite system and ∂etails on single page
Diffstat (limited to 'utils')
-rw-r--r--utils/auth/auth.go4
1 files changed, 4 insertions, 0 deletions
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 != "" {