React. The method of cutting the time limit value of url

everyone
question is like this
I have two faces
face A to create some kind of face
face B for character
I have two roles in face B, role one, role two
want to talk
when I jump to face A, Is there any way to determine whether the role I have made this time is role one or role two? there are only some differences between what role one and role two do in br > face A

.

is there any difference between
AB bits in different router
interview A to determine whether my role this time is a role one or a role two?

the difference between what role one and role two do in face An is only slightly different

.

role one-> A-> show the face of role one
role two-> A-> show the face of role two

to mention that I may also have roles three or four.
every character has their ID,
I originally wanted ID to
on url, but I didn"t think it was appropriate. I"ve come to teach

.
Mar.18,2021

doesn't have to be on url. You can use redux, page A to send state updates that action tells redux, while page B just gets the relevant state from redux. Since you don't think it's appropriate to put it on url, it suits you to use redux

.
Menu