Commit bc8fd925 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! BB 42583: Modify moz-support-link for Base Browser.

MB 566: Fix manual links.
parent bd128dd5
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ export default class MozSupportLink extends HTMLAnchorElement {
    const torManualPrefix = "tor-manual:";
    if (supportPage.startsWith(torManualPrefix)) {
      const torManualPage = supportPage.substring(torManualPrefix.length);
      const [page, anchor] = torManualPage.split("_", 2);
      const [pages, anchor] = torManualPage.split("___", 2);

      let locale = Services.locale.appLocaleAsBCP47;
      if (locale === "ja-JP-macos") {
@@ -115,7 +115,7 @@ export default class MozSupportLink extends HTMLAnchorElement {
        locale = "ja";
      }

      let href = `https://tb-manual.torproject.org/${locale}/${page}/`;
      let href = `https://support.torproject.org/${locale}/tor-browser/${pages.replace("__", "/")}/`;
      if (anchor) {
        href = `${href}#${anchor}`;
      }