From ea09a8a9c94c690dea643026078879fb5777276f Mon Sep 17 00:00:00 2001 From: voc0der Date: Tue, 3 Mar 2026 10:07:35 -0500 Subject: [PATCH] Fix OIDC handling for hash-based share links --- backend/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/app.js b/backend/app.js index 7ea8fb5..c8e82e3 100644 --- a/backend/app.js +++ b/backend/app.js @@ -2832,6 +2832,12 @@ app.use(function(req, res, next) { return next(); } + // Hash routes (/#/...) are received as "/" on the server. Let the SPA load so + // client-side routing can preserve return targets like /player;uid=... . + if (req.path === '/') { + return next(); + } + const accept = req.accepts('html', 'json', 'xml'); if (accept !== 'html') { return next();