Skip to content

Commit

Permalink
fix: order of redirects is incorrect (#1305)
Browse files Browse the repository at this point in the history
Fixes redirect not being honored

---------

Co-authored-by: Graham Tackley <gtackley@brave.com>
  • Loading branch information
IanKrieger and tackley authored Aug 6, 2024
1 parent e59dde0 commit c9ae2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/registration/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export function Register() {
<Switch>
<Route path="/register/browser" component={BrowserRegister} />
<Route path="/register/complete" component={AdvertiserRegistered} />
<Redirect exact={true} from="" to="/register/browser" />
<Redirect to="/search" from="/register/search" exact={true} />
<Redirect exact from="/register/search" to="/search" />
<Redirect exact from="" to="/register/browser" />
</Switch>
);
}

0 comments on commit c9ae2e9

Please sign in to comment.