Es necesaria la integración de CrowdHandler en la página de redirección
If the page you redirect users to does not invoke the CrowdHandler integration then you run the risk of breaking the user’s session and sending them back to the Waiting Room.
Esto supone un problema especial cuando:
- Estás utilizando la implementación de JavaScript, y
- Estás redirigiendo a tus usuarios directamente a la sala de espera, en lugar de dejar que la integración de JavaScript los redirija desde tu sitio web a la sala de espera.
Other integrations could experience this issue:
- Estás utilizando una integración personalizada en el servidor, pero tienes redireccionamientos configurados para que se ejecuten antes de que pueda ejecutarse la integración, por ejemplo, en la CDN o en un archivo .htaccess.
- You are using the WordPress plugin, but you have redirects set up in an .htaccess file, an Nginx configuration, or on a CDN.
The problem
When the user is sent to your redirect page, their token is encoded in a ch-id parameter and passed to your site in the URL.
The CrowdHandler integration retrieves this parameter and saves it on the user’s browser using local storage.
If the first page you send the user to does not have the CrowdHandler integration, and does not forward the ch-id to the next url, then the user's session will be lost before it can be set. This typically happens when the url you send the user to immediately redirects to a second url. If the token is not passed with the redirect, this will result in the user being given a new token and being returned to the queue.
Solutions
Dependiendo de tu caso concreto, hay soluciones.
- If your landing page immediately redirects the user, you need to ensure your redirect forwards the ch-id parameter. This may happen, for example, if you have an index page that automatically redirects to a language, e.g. /en becomes /en?ch-id=tok_xxxxxxxxxxx. If you can configure your redirect rule to forward all query parameters, do that.
- Si tu página de destino redirige inmediatamente al usuario, por ejemplo, desde / a /tickets, y /tickets cuenta con la integración de CrowdHandler, pero tu página de destino no, plantéate realizar la redirección a /tickets en lugar de a /
- If your landing page is, for example https://your-domain.com/tickets but your web server silently redirects the user to https://your-domain.com/tickets/ then enter the full URL with the trailing slash as your redirect page.