Skip to content

Commit

Permalink
redirect /about to /mission
Browse files Browse the repository at this point in the history
  • Loading branch information
jacamera committed Aug 10, 2021
1 parent be00adf commit 4bef473
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/app/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,13 @@ server.get('/earnings', (req, res) => {
findRouteByKey(routes, ScreenKey.Leaderboards).createUrl()
);
});
server.get('/about', (req, res) => {
redirect(
req,
res,
findRouteByKey(routes, ScreenKey.Mission).createUrl()
);
});
// handle redirects
server.get<{}, any, any, { token: string }>('/confirmEmail', (req, res) => {
req.api
Expand Down
2 changes: 1 addition & 1 deletion src/common/routing/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const routes: Route<DialogKey, ScreenKey>[] = [
},
{
createUrl: () => '/mission',
pathRegExp: /^\/mission|about$/,
pathRegExp: /^\/mission$/,
screenKey: ScreenKey.Mission
},
(function () {
Expand Down

0 comments on commit 4bef473

Please sign in to comment.