diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx
index b5422c861..423c7ad1e 100644
--- a/frontend/src/app/layout.tsx
+++ b/frontend/src/app/layout.tsx
@@ -64,6 +64,7 @@ export default function RootLayout({
src={`https://${analytics.url}/script.js`}
data-website-id={analytics.token}
>
+
diff --git a/frontend/src/app/scripts/_components/ScriptAccordion.tsx b/frontend/src/app/scripts/_components/ScriptAccordion.tsx
index 4a39c40e9..96be28da2 100644
--- a/frontend/src/app/scripts/_components/ScriptAccordion.tsx
+++ b/frontend/src/app/scripts/_components/ScriptAccordion.tsx
@@ -12,6 +12,7 @@ import { cn } from "@/lib/utils";
import Image from "next/image";
import Link from "next/link";
import { useState } from "react";
+import { basePath } from "@/config/siteConfig";
export default function ScriptAccordion({
items,
@@ -104,13 +105,13 @@ export default function ScriptAccordion({
>
((e.currentTarget as HTMLImageElement).src =
- "/logo.png")
+ `/${basePath}/logo.png`)
}
alt={script.name}
className="mr-1 w-4 h-4 rounded-full"
diff --git a/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx b/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx
index 962e516f8..1c418c94c 100644
--- a/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx
+++ b/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx
@@ -7,7 +7,7 @@ import {
CardHeader,
CardTitle,
} from "@/components/ui/card";
-import { mostPopularScripts } from "@/config/siteConfig";
+import { basePath, mostPopularScripts } from "@/config/siteConfig";
import { extractDate } from "@/lib/time";
import { Category, Script } from "@/lib/types";
import { CalendarPlus } from "lucide-react";
@@ -92,11 +92,15 @@ export function LatestScripts({ items }: { items: Category[] }) {
+ ((e.currentTarget as HTMLImageElement).src =
+ `/${basePath}/logo.png`)
+ }
className="h-11 w-11 object-contain"
/>
@@ -161,10 +165,14 @@ export function MostViewedScripts({ items }: { items: Category[] }) {
+ ((e.currentTarget as HTMLImageElement).src =
+ `/${basePath}/logo.png`)
+ }
className="h-11 w-11 object-contain"
/>
diff --git a/frontend/src/app/scripts/_components/ScriptItem.tsx b/frontend/src/app/scripts/_components/ScriptItem.tsx
index 2d9848dbd..835fce576 100644
--- a/frontend/src/app/scripts/_components/ScriptItem.tsx
+++ b/frontend/src/app/scripts/_components/ScriptItem.tsx
@@ -14,6 +14,7 @@ import Description from "./ScriptItems/Description";
import InstallCommand from "./ScriptItems/InstallCommand";
import InterFaces from "./ScriptItems/InterFaces";
import Tooltips from "./ScriptItems/Tooltips";
+import { basePath } from "@/config/siteConfig";
function ScriptItem({
item,
@@ -40,10 +41,11 @@ function ScriptItem({
- ((e.currentTarget as HTMLImageElement).src = "/logo.png")
+ ((e.currentTarget as HTMLImageElement).src =
+ `/${basePath}/logo.png`)
}
height={400}
alt={item.name}
diff --git a/frontend/src/components/CommandMenu.tsx b/frontend/src/components/CommandMenu.tsx
index 140897e5a..b1c8e1267 100644
--- a/frontend/src/components/CommandMenu.tsx
+++ b/frontend/src/components/CommandMenu.tsx
@@ -15,6 +15,7 @@ import React from "react";
import { Badge } from "./ui/badge";
import { Button } from "./ui/button";
import { DialogTitle } from "./ui/dialog";
+import { basePath } from "@/config/siteConfig";
export const formattedBadge = (type: string) => {
switch (type) {
@@ -102,10 +103,10 @@ export default function CommandMenu() {
>
setOpen(false)}>
((e.currentTarget as HTMLImageElement).src =
- "/logo.png")
+ `/${basePath}/logo.png`)
}
unoptimized
width={16}