# HG changeset patch # User Matthew Wild # Date 1600084054 -3600 # Node ID 05d0a249326a71ab78649f10e5a4f8f96f73ee0b # Parent 165ade4ce97b87578b08caa1cb224405c87aee7e mod_invites_page: Add Link header for URI with rel=alternate diff -r 165ade4ce97b -r 05d0a249326a mod_invites_page/mod_invites_page.lua --- a/mod_invites_page/mod_invites_page.lua Sun Sep 13 11:05:19 2020 +0100 +++ b/mod_invites_page/mod_invites_page.lua Mon Sep 14 12:47:34 2020 +0100 @@ -98,6 +98,8 @@ template_vars.apps = render_app_urls(site_apps, template_vars); local invite_page = render_html_template(invite_page_template, template_vars); + + event.response.headers["Link"] = ([[<%s>; rel="alternate"]]):format(template_vars.uri); return invite_page; end