Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

use correct protocol

Isaac Wiseaecb90b4a471
diff --git a/pages/public/collections/[id]/rss.tsx b/pages/public/collections/[id]/rss.tsx
index 00e8e2f7..1cc793e4 100644
--- a/pages/public/collections/[id]/rss.tsx
+++ b/pages/public/collections/[id]/rss.tsx
@@ -33,8 +33,9 @@ export const getServerSideProps: GetServerSideProps = async ({ params, res, req
const host = req.headers.host;
- const siteUrl = `https://${host}/collection/${data.id}`;
- const feedUrl = `https://${host}/collections/${data.id}/rss`;
+ const protocol = req.headers['x-forwarded-proto'] || (req.socket ? 'https' : 'http');
+ const siteUrl = `${protocol}://${host}/public/collections/${data.id}`;
+ const feedUrl = `${protocol}://${host}/public/collections/${data.id}/rss`;
const feed = new RSS({
title: data.name,