hmmm … I am a maybe on this.
Cause if you are on a page you have no permission to access then the refresh will result in an error, so we would have to account for that, which is complicated.
I think if you are doing this kind of stuff use multiple browsers or profiles. That is the way to go.