From 098787692032b18f8467d0856ddccf7075085132 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 19 Mar 2021 18:16:47 -0400 Subject: [PATCH] hardcode odysee redirect for open.lbry.com links --- web/middleware/redirect.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/middleware/redirect.js b/web/middleware/redirect.js index 55598b8d6..ccf9eb0e0 100644 --- a/web/middleware/redirect.js +++ b/web/middleware/redirect.js @@ -1,5 +1,5 @@ const PAGES = require('../../ui/constants/pages'); -const config = require('../../config'); +// const config = require('../../config'); function formatInAppUrl(path) { // Determine if we need to add a leading "/$/" for app pages @@ -46,7 +46,9 @@ async function redirectMiddleware(ctx, next) { if (requestHost === 'open.lbry.com' || requestHost === 'open.lbry.io') { const openQuery = '?src=open'; - let redirectUrl = config.URL + formatInAppUrl(url); + // let redirectUrl = config.URL + formatInAppUrl(url); + // Blame tom for this, not me + let redirectUrl = 'https://odysee.com' + formatInAppUrl(url); if (redirectUrl.includes('?')) { redirectUrl = redirectUrl.replace('?', `${openQuery}&`);