From 5256b3929b53377e24c548e26afead98f63aba84 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Fri, 14 Oct 2022 14:04:10 +0200 Subject: [PATCH] Make micropub and indieauth paths absolute to increase compatibility with some clients --- ui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui.go b/ui.go index 20f47e8..28a114a 100644 --- a/ui.go +++ b/ui.go @@ -72,11 +72,11 @@ func (a *goBlog) renderBase(hb *htmlbuilder.HtmlBuilder, rd *renderData, title, // Webmentions hb.WriteElementOpen("link", "rel", "webmention", "href", a.getFullAddress("/webmention")) // Micropub - hb.WriteElementOpen("link", "rel", "micropub", "href", "/micropub") + hb.WriteElementOpen("link", "rel", "micropub", "href", a.getFullAddress("/micropub")) // IndieAuth - hb.WriteElementOpen("link", "rel", "authorization_endpoint", "href", "/indieauth") - hb.WriteElementOpen("link", "rel", "token_endpoint", "href", "/indieauth/token") - hb.WriteElementOpen("link", "rel", "indieauth-metadata", "href", "/.well-known/oauth-authorization-server") + hb.WriteElementOpen("link", "rel", "authorization_endpoint", "href", a.getFullAddress("/indieauth")) + hb.WriteElementOpen("link", "rel", "token_endpoint", "href", a.getFullAddress("/indieauth/token")) + hb.WriteElementOpen("link", "rel", "indieauth-metadata", "href", a.getFullAddress("/.well-known/oauth-authorization-server")) // Rel-Me user := a.cfg.User if user != nil {