From a232a33b72852862da6149dc576b45e46654dede Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Sat, 9 Mar 2024 11:27:37 -0500 Subject: [PATCH] fix: derive currentUrl from actual page path --- 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, })