diff --git a/isp-site/src/index.js b/isp-site/src/index.js
index c18ac64d..2b5757db 100644
--- a/isp-site/src/index.js
+++ b/isp-site/src/index.js
@@ -21,12 +21,12 @@ const routes = [];
ParentBrands.map((brand) => {
routes.push({
path: `${brand.route}`,
- element: ,
+ element: ,
errorElement: ,
children: [
{
path: ":language",
- element: ,
+ element: ,
},
],
});
diff --git a/isp-site/src/routes/markdown.jsx b/isp-site/src/routes/markdown.jsx
index 5a867614..515e5f1d 100644
--- a/isp-site/src/routes/markdown.jsx
+++ b/isp-site/src/routes/markdown.jsx
@@ -31,7 +31,7 @@ import { getStrings, getLang } from "utils/langs";
import { Explorer } from "utils/explorer";
// Page
-export default function Markdown({ readme }) {
+export default function Markdown({ readme, brand }) {
const l = getLang(useParams().language);
const s = getStrings(strings, l);
const css = `.markdown .lang { display: none; } .markdown .lang.${l.toUpperCase()} { display: inherit; }`;
@@ -39,6 +39,10 @@ export default function Markdown({ readme }) {
const [content, setContent] = useState(`${s.loading}`);
+ useEffect(() => {
+ document.title = `${brand} Compliance Packages`;
+ });
+
useEffect(() => {
fetch(md)
.then((response) => {
@@ -52,12 +56,11 @@ export default function Markdown({ readme }) {
});
useEffect(() => {
- const page = document.getElementsByTagName("body")[0].classList[0];
const branches = document.querySelectorAll(".markdown .contents");
if (branches.length > 0) {
for (const branch of branches) {
- Explorer(page, branch, l).then((table) => {
+ Explorer(brand.toLowerCase(), branch, l).then((table) => {
ReactDOM.createRoot(branch).render(