It is necessary to substitute the value of this.id
for the id
key.
I feel that I was naughty, but I do not know how to do it right.
<script type="text/javascript"> ... if (confirm("Вы уверены?")) window.location = '<?=$this->createUrl('controller/action', ['id' => '<script type="text/javascript">this.id</script>']); ?>'; ... </script>
this.id
a server side value? - Grundy