mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
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.
This commit is contained in:
parent
53348d5ac4
commit
3a89454e82
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export class Footer extends Component<FooterProps, any> {
|
||||||
</li>
|
</li>
|
||||||
<li className="nav-item">
|
<li className="nav-item">
|
||||||
<a className="nav-link" href={joinLemmyUrl}>
|
<a className="nav-link" href={joinLemmyUrl}>
|
||||||
{I18NextService.i18n.t("join_lemmy")}
|
{new URL(joinLemmyUrl).hostname}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue