web: Rename /join route to /register for clarity
This commit is contained in:
parent
68a14fb8d4
commit
ebdd763410
10 changed files with 8 additions and 8 deletions
|
|
@ -135,11 +135,11 @@ func DeclareRoutes(cfg *happydns.Options, router *gin.RouterGroup, captchaVerifi
|
|||
router.GET("/email-validation", serveIndex)
|
||||
router.GET("/forgotten-password", serveIndex)
|
||||
router.GET("/generator/*_", serveIndex)
|
||||
router.GET("/join", serveIndex)
|
||||
router.GET("/login", serveIndex)
|
||||
router.GET("/me", serveIndex)
|
||||
router.GET("/onboarding/*_", serveIndex)
|
||||
router.GET("/providers/*_", serveIndex)
|
||||
router.GET("/register", serveIndex)
|
||||
router.GET("/services/*_", serveIndex)
|
||||
router.GET("/tools/*_", serveIndex)
|
||||
router.GET("/resolver/*_", serveIndex)
|
||||
|
|
|
|||
|
|
@ -158,9 +158,9 @@
|
|||
{#if !$appConfig.disable_registration}
|
||||
<Button
|
||||
class="d-none d-md-inline-block mx-1"
|
||||
outline={!page.route || page.route.id != "/join"}
|
||||
outline={!page.route || page.route.id != "/register"}
|
||||
color="dark"
|
||||
href="/join"
|
||||
href="/register"
|
||||
>
|
||||
<Icon name="person-plus-fill" aria-hidden="true" />
|
||||
{$t("menu.signup")}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export const load: Load = async ({ route, url }) => {
|
|||
locale.set(user.settings.language);
|
||||
}
|
||||
} catch (err) {
|
||||
if (route.id != null && route.id != "/login" && route.id != "/forgotten-password" && route.id != "/join" && !route.id.startsWith("/resolver") && !route.id.startsWith("/generator") && route.id != "/providers/features" && !route.id.startsWith("/email-validation")) {
|
||||
if (route.id != null && route.id != "/login" && route.id != "/forgotten-password" && route.id != "/register" && !route.id.startsWith("/resolver") && !route.id.startsWith("/generator") && route.id != "/providers/features" && !route.id.startsWith("/email-validation")) {
|
||||
toasts.addToast({
|
||||
type: 'error',
|
||||
title: get(t)("errors.session.title"),
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ import { appConfig } from "$lib/stores/config";
|
|||
|
||||
export const load: Load = async () => {
|
||||
if (get(appConfig).disable_registration) redirect(302, "/login");
|
||||
else redirect(302, "/join");
|
||||
else redirect(302, "/register");
|
||||
};
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ import { appConfig } from "$lib/stores/config";
|
|||
|
||||
export const load: Load = async () => {
|
||||
if (get(appConfig).disable_registration) redirect(302, "/login");
|
||||
else redirect(302, "/join");
|
||||
else redirect(302, "/register");
|
||||
};
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@
|
|||
<p class="card-text text-muted">
|
||||
{$t("generator.svctype.cta-text")}
|
||||
</p>
|
||||
<a href="/join" class="btn btn-primary">{$t("generator.svctype.cta-button")}</a>
|
||||
<a href="/register" class="btn btn-primary">{$t("generator.svctype.cta-button")}</a>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
{#if !$appConfig.disable_registration}
|
||||
<div class="text-center mt-4">
|
||||
{$t("account.ask-have")}
|
||||
<a href="/join" class="fw-bold">
|
||||
<a href="/register" class="fw-bold">
|
||||
{$t("account.join")}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue