I have the below code in my HTML
the new tab is being blocked by the browser as a popup
<script>
setTimeout(function () {
location.href = "/user/agent/dashboard";
}, 100);
</script>
<script>
function NewTab() {
window.open(
"{{ .destination }}", 1000);
}
NewTab();
</script>
You could use:
<script>
setTimeout(function () {
location.href = "/user/agent/dashboard","window name","_blank";
}, 100);
</script>