From: Dennis Saw Date: Wed, 5 Jul 2023 15:42:44 +0000 (-0700) Subject: Use Join Lemmy hostname as link text in footer (#1737) X-Git-Url: http://these/git/readmes/README.ja.md?a=commitdiff_plain;h=3a89454e829d2a7ed59346c35b83c6991fd7b1b7;p=lemmy-ui.git Use Join Lemmy hostname as link text in footer (#1737) * Use Join Lemmy URL as link text in footer when there's a user I think it makes sense to keep a link to the Join Lemmy website even though there's a logged in user. There's plenty of other useful info on that website beyond just joining Lemmy. Using the URL avoids the phrase "Join Lemmy" and should indicate that you're navigating to said website. * Extract hostname from the existing URL constant instead * Just use hostname of join lemmy site in footer To maintain consistency whether logged in or not. --- diff --git a/src/shared/components/app/footer.tsx b/src/shared/components/app/footer.tsx index 6409ef3..17f7dc2 100644 --- a/src/shared/components/app/footer.tsx +++ b/src/shared/components/app/footer.tsx @@ -58,7 +58,7 @@ export class Footer extends Component {
  • - {I18NextService.i18n.t("join_lemmy")} + {new URL(joinLemmyUrl).hostname}