File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ export class Config {
451
451
}
452
452
453
453
get requestResetPasswordURL ( ) {
454
- return `${ this . publicServerURL } /apps /${ this . applicationId } /request_password_reset` ;
454
+ return `${ this . publicServerURL } /${ this . pagesEndpoint } /${ this . applicationId } /request_password_reset` ;
455
455
}
456
456
457
457
get passwordResetSuccessURL ( ) {
@@ -466,7 +466,15 @@ export class Config {
466
466
}
467
467
468
468
get verifyEmailURL ( ) {
469
- return `${ this . publicServerURL } /apps/${ this . applicationId } /verify_email` ;
469
+ return `${ this . publicServerURL } /${ this . pagesEndpoint } /${ this . applicationId } /verify_email` ;
470
+ }
471
+
472
+ // TODO: Remove this function once PagesRouter replaces the PublicAPIRouter;
473
+ // the (default) endpoint has to be defined in PagesRouter only.
474
+ get pagesEndpoint ( ) {
475
+ return this . pages && this . pages . enableRouter && this . pages . pagesEndpoint
476
+ ? this . pages . pagesEndpoint
477
+ : 'apps' ;
470
478
}
471
479
}
472
480
You can’t perform that action at this time.
0 commit comments