diff options
author | FChannel <> | 2021-10-09 13:57:42 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 0ef59b4f3cdddea55e38e4c3a2bdad721298eb4b (patch) | |
tree | 1249a1511f3c46eb4e367973f58209293e86f0d9 | |
parent | 7d5e18f1d6c25c82440d2787f834a20d09a3f37c (diff) |
added slash for correct href routing
-rw-r--r-- | client.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -491,7 +491,7 @@ func PostGet(w http.ResponseWriter, r *http.Request, db *sql.DB) { "parseReplyLink": func(actorId string, op string, id string, content string) template.HTML { actor := FingerActor(actorId) title := strings.ReplaceAll(ParseLinkTitle(actor.Id, op, content), `/\<`, ">") - link := "<a href=\"" + actor.Name + "/" + shortURL(actor.Outbox, op) + "#" + shortURL(actor.Outbox, id) + "\" title=\"" + title + "\" class=\"replyLink\">>>" + shortURL(actor.Outbox, id) + "</a>" + link := "<a href=\"/" + actor.Name + "/" + shortURL(actor.Outbox, op) + "#" + shortURL(actor.Outbox, id) + "\" title=\"" + title + "\" class=\"replyLink\">>>" + shortURL(actor.Outbox, id) + "</a>" return template.HTML(link) }, "timeToReadableLong": timeToReadableLong, |