Make micropub and indieauth paths absolute to increase compatibility with some clients

This commit is contained in:
Jan-Lukas Else 2022-10-14 14:04:10 +02:00
parent 7a4e994478
commit 5256b3929b
1 changed files with 4 additions and 4 deletions

8
ui.go
View File

@ -72,11 +72,11 @@ func (a *goBlog) renderBase(hb *htmlbuilder.HtmlBuilder, rd *renderData, title,
// Webmentions // Webmentions
hb.WriteElementOpen("link", "rel", "webmention", "href", a.getFullAddress("/webmention")) hb.WriteElementOpen("link", "rel", "webmention", "href", a.getFullAddress("/webmention"))
// Micropub // Micropub
hb.WriteElementOpen("link", "rel", "micropub", "href", "/micropub") hb.WriteElementOpen("link", "rel", "micropub", "href", a.getFullAddress("/micropub"))
// IndieAuth // IndieAuth
hb.WriteElementOpen("link", "rel", "authorization_endpoint", "href", "/indieauth") hb.WriteElementOpen("link", "rel", "authorization_endpoint", "href", a.getFullAddress("/indieauth"))
hb.WriteElementOpen("link", "rel", "token_endpoint", "href", "/indieauth/token") hb.WriteElementOpen("link", "rel", "token_endpoint", "href", a.getFullAddress("/indieauth/token"))
hb.WriteElementOpen("link", "rel", "indieauth-metadata", "href", "/.well-known/oauth-authorization-server") hb.WriteElementOpen("link", "rel", "indieauth-metadata", "href", a.getFullAddress("/.well-known/oauth-authorization-server"))
// Rel-Me // Rel-Me
user := a.cfg.User user := a.cfg.User
if user != nil { if user != nil {