ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Redirect not destroying page

Open maxsuelslima opened this issue 1 year ago • 0 comments

Prerequisites

Ionic Framework Version

v7.x, v8.x

Current Behavior

When user land to a protected router and acess the protected, after sign in, this router is rendred twice.

image

Expected Behavior

The private route should be detroyed or at least not rendered twice

Steps to Reproduce

  1. Try to acess "/" route
  2. Click on [Sign In] button

Code Reproduction URL

https://github.com/maxsuelslima/ionic-redirect

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (C:\Users\maico\AppData\Roaming\nvm\v20.13.1\node_modules@ionic\cli) Ionic Framework : @ionic/react 7.8.6

Utility:

cordova-res : not installed globally native-run : not installed globally

System:

NodeJS : v20.13.1 (C:\Program Files\nodejs\node.exe) npm : 10.5.2 OS : Windows 10

Additional Information

No response

maxsuelslima avatar Jun 12 '24 14:06 maxsuelslima