Navigation behavior

Hi community!

A small question…
Is this sequence possible using Navigation and Router?

router.push(“page1”);
router.push(“page2”);
router.push(“page1”);
router.goBack();

for me that seems not working…

Thank you very much!

Sorry, but everything works as expected. The page has PageControl and I forgot to indicate IsRouterOutlet=“false”