Hi Shardul,
In addition to what Dinesh mentioned, here is more information that could help:
If you always want to redirect to login.html if users use your app url, try changing the line in index.html to:
if (!document.cookie || !document.cookie.match(/originURI=login/gi))
More information on this here
You can also add your own redirect logic to index.html to ignore cookie.
HI Shardul,
The index.html page will be called initially and then will be redirect to the login.html or any page that is called from the index.html.
In your index.html check what is mapped in this line :
document.cookie = "originURI=/login.html" + (window.location.protocol === "https:" ? ";SameSite=None;Secure" : "");
You can map your page here.
Hope this helps.