Display dynamic page in iframe

I’m trying to fetch a dynamic URL that contains ${wixUsers.currentUser.id} but I don’t know how to do that,I’m using the following code:

$w.onReady(function () {
        $w('#html6').src=`/Afiliados/Registro/${wixUsers.currentUser.id}`; 

	});

What am I doing wrong here?
Thanx.