diff --git a/package.json b/package.json index 4cee8c4e..a6f4d345 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "husky": "^7.0.4", "import-sort-style-module": "^6.0.0", "iso-639-1": "^2.1.10", - "lemmy-js-client": "0.15.0-rc.3", + "lemmy-js-client": "0.15.0-rc.2", "lint-staged": "^12.1.2", "mini-css-extract-plugin": "^2.4.5", "node-fetch": "^2.6.1", diff --git a/src/server/index.tsx b/src/server/index.tsx index cedb22da..82d0379b 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -92,7 +92,7 @@ server.get("/*", async (req, res) => { let errCode = routeData[0].error; console.error(errCode); if (errCode == "instance_is_private") { - return res.redirect(`/login`); + return res.redirect(`/signup`); } else { return res.redirect(`/404?err=${errCode}`); } diff --git a/src/shared/components/home/signup.tsx b/src/shared/components/home/signup.tsx index e5706a7d..8effa958 100644 --- a/src/shared/components/home/signup.tsx +++ b/src/shared/components/home/signup.tsx @@ -108,7 +108,13 @@ export class Signup extends Component { } get documentTitle(): string { - return `${i18n.t("login")} - ${this.state.site_view.site.name}`; + return `${this.titleName} - ${this.state.site_view.site.name}`; + } + + get titleName(): string { + return `${i18n.t( + this.state.site_view.site.private_instance ? "apply_to_join" : "sign_up" + )}`; } get isLemmyMl(): boolean { @@ -132,7 +138,7 @@ export class Signup extends Component { registerForm() { return (
-
{i18n.t("sign_up")}
+
{this.titleName}