File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export default function AppRoutes() {
5959 const pathname = location . pathname ;
6060 const hasUserFeedbackSuveyFeatureFlag = useFeatureFlag ( "userFeedbackSurvey" ) ;
6161 const isAdminRoute = pathname . startsWith ( "/admin" ) ;
62- const isWidgetRoute = pathname === "/widget" ;
62+ const isWidgetRoute = pathname . startsWith ( "/widget" ) ;
6363 const isUserFacingRoute = ! isAdminRoute && ! isWidgetRoute ;
6464
6565 const showSurveySnackbar =
@@ -108,13 +108,10 @@ export default function AppRoutes() {
108108 < Route path = "profile/:id" element = { < Profile /> } />
109109 < Route path = "register" element = { < Register /> } />
110110 < Route path = "confirm/:token" element = { < ConfirmEmail /> } />
111- < Route path = "login{/:email}" element = { < Login /> } />
111+ < Route path = "login/:email?" element = { < Login /> } />
112+ < Route path = "forgotpassword/:email?" element = { < ForgotPassword /> } />
112113 < Route
113- path = "forgotpassword{/:email}"
114- element = { < ForgotPassword /> }
115- />
116- < Route
117- path = "resetpasswordemailsent{/:email}"
114+ path = "resetpasswordemailsent/:email?"
118115 element = { < ResetPasswordEmailSent /> }
119116 />
120117 < Route path = "resetPassword/:token" element = { < ResetPassword /> } />
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ app.use(express.static("public"));
6969// page, so requests that don't match any of the above are
7070// assumed to be for react pages.
7171if ( process . env . NODE_ENV === "production" ) {
72- app . get ( "/ *splat" , ( req , res ) => {
72+ app . get ( "*splat" , ( req , res ) => {
7373 res . sendFile ( path . join ( __dirname + "/client/build/index.html" ) ) ;
7474 } ) ;
7575}
You can’t perform that action at this time.
0 commit comments