frontend: correct room URL path for token expiration checks

This commit is contained in:
juancarmore 2025-07-04 14:03:13 +02:00
parent 62f5a64708
commit 8761108dcc

View File

@ -112,7 +112,7 @@ export const httpInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, ne
// Expired recording token // Expired recording token
if ( if (
pageUrl.startsWith('/room') && pageUrl.startsWith('/room/') &&
pageUrl.includes('/recordings') && pageUrl.includes('/recordings') &&
requestUrl.includes('/recordings') requestUrl.includes('/recordings')
) { ) {
@ -123,7 +123,7 @@ export const httpInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, ne
// Expired participant token // Expired participant token
if ( if (
pageUrl.startsWith('/room') && pageUrl.startsWith('/room/') &&
!pageUrl.includes('/recordings') && !pageUrl.includes('/recordings') &&
!requestUrl.includes('/profile') !requestUrl.includes('/profile')
) { ) {