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();