Bug: routerDirection="none" not setting page as root page

When using routerDirection= “none” the page is not set as the root page. while pressing the back button it goes back to the previous page. I’m using ionic react sidemenu app.