mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-20 05:49:15 +00:00
fix: derive currentUrl from actual page path
This commit is contained in:
parent
42ad68fe34
commit
a232a33b72
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ func ViewQuestion(c *gin.Context) {
|
||||||
"answers": answers,
|
"answers": answers,
|
||||||
"imagePolicy": imagePolicy,
|
"imagePolicy": imagePolicy,
|
||||||
"theme": c.MustGet("theme").(string),
|
"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,
|
"sortValue": params.SoSortValue,
|
||||||
"domain": domain,
|
"domain": domain,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue