Skip to content

bug: browser history state is overwritten if user is signed-out while on landing page #5898

Closed as not planned
@pratheekrebala

Description

@pratheekrebala

It looks like the browser history state is being replaced if a user browses to the server when they are not signed in. This prevents a user from using the "back" button on their browser.

if (authState.matches("signedIn")) {
return <Navigate to={redirectTo} replace />
} else if (authState.matches("waitingForTheFirstUser")) {

Is this intentional? If not, I think the removing the replace on the navigate component should fix it..

This was initially introduced in: #465

Metadata

Metadata

Assignees

No one assigned

    Labels

    s2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions