I have a Joomla site which shows coming soon template if the user goes to the page https://mysite.com
However, I'd like a way to bypass the coming soon page by adding a parameter to the URL. For example, if the site visitor types https://mysite.com?pass then they'll be able to see the original template and not the coming soon page. In my template php file, I've been able to do that using this code
if (isset($_GET['pass'])) {
// show template instead of coming soon page
}
This works in showing the home page, but if I navigate to another page, I still see the coming soon page, so I'd like to pass the variable 'pass' to all the other urls. How can I achieve that?