Fix OIDC handling for hash-based share links

pull/1163/head
voc0der 2 months ago
parent be179d8376
commit ea09a8a9c9

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

Loading…
Cancel
Save