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
2 changed files with 1 additions and 13 deletions
-12
View File
@@ -50,15 +50,3 @@ html {
details {
cursor: pointer;
}
.d-flex {
display: flex;
}
.fd-column {
flex-direction: column;
}
.fw-nowrap {
flex-wrap: nowrap;
}
+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,
})