Merge pull request #624 from bdchik/fix

Bug Fix:  Ensure the QR code favicon.svg honors the base path, when configured.
This commit is contained in:
Donkie
2025-02-24 21:04:19 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
import { getBasePath } from "../../utils/url";
import { InboxOutlined, PrinterOutlined, ToTopOutlined } from "@ant-design/icons";
import { DateField, NumberField, Show, TextField } from "@refinedev/antd";
import { IResourceComponentsProps, useInvalidate, useShow, useTranslate } from "@refinedev/core";
@@ -117,7 +118,7 @@ export const SpoolShow: React.FC<IResourceComponentsProps> = () => {
<Button
type="primary"
icon={<PrinterOutlined />}
href={"/spool/print?spools=" + record?.id + "&return=" + encodeURIComponent(window.location.pathname)}
href={getBasePath() + "/spool/print?spools=" + record?.id + "&return=" + encodeURIComponent(window.location.pathname)}
>
{t("printing.qrcode.button")}
</Button>