After setting up a page with a timeout that should automatically redirect to a specific URL after 60 minutes, I encountered an issue where the redirection sometimes leads to a loss of parameters in the URL. The JavaScript code added for this purpose is
setTimeout(function() { location.assign('http://example.com/?x=1'); }, 60000);
.
This problem seems to occur particularly on mobile browsers, with one user reporting a similar issue on desktop as well. It could be related to mobile browsers being killed by the OS when left idle for an extended period, causing the default homepage to load instead of the specified URL upon reactivation. However, it's unclear why the full URL isn't retained during this process.
If anyone has experienced a similar problem or has insight into why this might be happening across various platforms and browsers, I would appreciate any feedback. While I understand potential solutions involving cookies or session-wide variables, my main goal is to identify the root cause of this specific issue. Thank you for your assistance.