Skip to content

Commit 672ed0f

Browse files
committed
Link to the default locale-specific version of the landing page from the banner.js
1 parent 2356a78 commit 672ed0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/banner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999

100100
// ── Link ────────────────────────────────────────────────────────────
101101
var linkParam = params.link;
102-
var linkUrl = linkParam === "none" ? null : (linkParam || "https://keepandroidopen.org");
102+
var defaultLink = "https://keepandroidopen.org" + (locale === "en" ? "" : "/" + locale + "/");
103+
var linkUrl = linkParam === "none" ? null : (linkParam || defaultLink);
103104

104105
// ── Close button ────────────────────────────────────────────────────
105106
var showClose = params.hidebutton !== "off";

0 commit comments

Comments
 (0)