now if i'm in a different branch, and try to refresh page, it redirects me on main branch, but i would to stay on my current one.