fix(console): hide header Download button on localized download pages (#61207)

This commit is contained in:
Dax
2026-11-02 01:24:53 -05:00
committed by GitHub
Unverified
parent e764fbe309
commit ff90ed9160
@@ -18,6 +18,7 @@ import { Match, Show, Switch } from "solid-js"
import { createStore } from "solid-js/store"
import { createEffect, onCleanup } from "solid-js"
import { config } from "~/config"
import { strip } from "~/lib/language"
import { useI18n } from "~/context/i18n"
import { useLanguage } from "~/context/language"
import "./header-context-menu.css"
@@ -40,7 +41,7 @@ export function Header() {
const i18n = useI18n()
const language = useLanguage()
const location = useLocation()
const onDownload = () => location.pathname.replace(/\/$/, "") === language.route("/download")
const onDownload = () => strip(location.pathname) === "/download"
const [store, setStore] = createStore({
mobileMenuOpen: false,