🔧 Fixed # symbol handling in URLs

This commit is contained in:
2024-01-08 13:57:12 -05:00
parent f3abc07005
commit 3b11b648c6

View File

@@ -12,6 +12,7 @@ import {
} from "../../../constants/endpoints";
import { useStore } from "../../../store";
import { useShallow } from "zustand/react/shallow";
import { escapePoundSymbol } from "../../../shared/utils/formatting.utils";
export const ArchiveOperations = (props): ReactElement => {
const { data } = props;
@@ -30,7 +31,7 @@ export const ArchiveOperations = (props): ReactElement => {
const [imageAnalysisResult, setImageAnalysisResult] = useState({});
const constructImagePaths = (data): Array<string> => {
return data?.map((path: string) =>
encodeURIComponent(`${LIBRARY_SERVICE_HOST}/${path}`),
escapePoundSymbol(encodeURI(`${LIBRARY_SERVICE_HOST}/${path}`)),
);
};