From ff66f41f4714f3f0c4ff690242a7de693335c3eb Mon Sep 17 00:00:00 2001 From: httpjamesm <51917118+httpjamesm@users.noreply.github.com> Date: Sat, 9 Mar 2024 11:28:45 -0500 Subject: [PATCH] fix: derive currentUrl from actual page path (#89) --- src/routes/question.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/question.go b/src/routes/question.go index 7c0b603..4cf8161 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -109,7 +109,7 @@ func ViewQuestion(c *gin.Context) { "answers": answers, "imagePolicy": imagePolicy, "theme": c.MustGet("theme").(string), - "currentUrl": fmt.Sprintf("%s/questions/%s/%s", os.Getenv("APP_URL"), questionId, params.QuestionTitle), + "currentUrl": fmt.Sprintf("%s%s", os.Getenv("APP_URL"), c.Request.URL.Path), "sortValue": params.SoSortValue, "domain": domain, })