Skip to content

Commit 2291a52

Browse files
authored
Merge pull request #4 from collective/issue-2-routes
Routes match those on volto.
2 parents a76d80f + 8b42d67 commit 2291a52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ const applyConfig = (config) => {
1717
];
1818
config.addonRoutes.push(
1919
{ path: '/login', component: Login },
20+
{ path: '/**/login', component: Login },
2021
{ path: '/logout', component: Logout },
22+
{ path: '/**/logout', component: Logout },
2123
{ path: '/register', component: Login },
24+
{
25+
path: `/(${config.settings?.supportedLanguages.join('|')})/register`,
26+
component: Login,
27+
},
2228
{ path: '/login-authomatic/:provider', component: LoginAuthomatic },
2329
);
2430
return config;

0 commit comments

Comments
 (0)