Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit badf451

Browse files
restore redirection
1 parent 683d5ab commit badf451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Main App component
33
*/
44
import React, { useLayoutEffect, useEffect, useRef } from "react";
5-
import { Router, useLocation } from "@reach/router";
5+
import { Router, useLocation, Redirect } from "@reach/router";
66
import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app";
77
import _ from "lodash";
88
import { usePreviousLocation } from "./utils/hooks";
@@ -55,6 +55,7 @@ const App = () => {
5555
view="my-gigs"
5656
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
5757
/>
58+
<Redirect from="/earn/*" to="/earn/find/challenges/" noThrow />
5859
</Router>
5960
</>
6061
);

0 commit comments

Comments
 (0)