Compare commits

...

1 Commits

Author SHA1 Message Date
httpjamesm a232a33b72 fix: derive currentUrl from actual page path 2024-03-09 11:27:37 -05:00
+1 -1
View File
@@ -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,
})