changeset 4116:05d0a249326a

mod_invites_page: Add Link header for URI with rel=alternate
author Matthew Wild <mwild1@gmail.com>
date Mon, 14 Sep 2020 12:47:34 +0100
parents 165ade4ce97b
children a1c6eea971ce
files mod_invites_page/mod_invites_page.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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