Something like this should work:
Create a variable WhereTo
When player overlaps object portalbricks
System set variable whereto to portalbricks.portalto
goto next layout
On start of layout
- Portalbricks compare portalto = Whereto
> player set position to portalbricks