L'intégration de CrowdHandler est requise sur la page de redirection
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.
Cela pose un problème particulier lorsque :
- Vous utilisez l'implémentation JavaScript, et
- Vous redirigez vos utilisateurs directement vers la salle d'attente, plutôt que de laisser l'intégration JavaScript les rediriger depuis votre site vers la salle d'attente.
Other integrations could experience this issue:
- Vous utilisez une intégration personnalisée sur le serveur, mais vous avez configuré des redirections qui s'exécutent avant que l'intégration ne puisse s'exécuter, par exemple sur le CDN ou dans un fichier .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
Selon votre cas d'utilisation, il existe des solutions.
- 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 votre page d'accueil redirige immédiatement l'utilisateur, par exemple depuis / vers /tickets, et que /tickets intègre CrowdHandler, mais que ce n'est pas le cas de votre page d'accueil, pensez à rediriger vers /tickets plutôt que vers /
- 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.