(core) Fixing redirect url for landing page

Summary: Redirect URL for landing page wasn't redirecting properly.

Test Plan: Existing tests

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: georgegevoian

Differential Revision: https://phab.getgrist.com/D3564
This commit is contained in:
Jarosław Sadziński 2022-08-04 17:42:34 +02:00
parent 7210ef3117
commit 6206644686

View File

@ -1211,7 +1211,7 @@ export class FlexServer implements GristServer {
return this._sendAppPage(req, resp, {path: 'error.html', status: 404, config: {errPage: 'not-found'}});
}
// Redirect to home page with url params
const url = `${getPrefix(req)}?planType=${planType}#create-team`;
const url = `${getPrefix(req)}/?planType=${planType}#create-team`;
return resp.redirect(url);
}));
}