mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-19 21:39:24 +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,
|
||||
"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,
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue