Skip to content

Commit

Permalink
fix: url encode
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 authored and acaldas committed Jul 2, 2024
1 parent 4117bba commit b942520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/graphql/iframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function GraphQLIframe({ url }: { url: string }) {
const query = searchParams?.get("query");
return (
<iframe
src={`${url}${query ? "?query=" + query : ""}`}
src={`${url}${query ? "?query=" + encodeURI(query) : ""}`}
height="100%"
width="100%"
className="min-h-[calc(100vh-63px)]"
Expand Down

0 comments on commit b942520

Please sign in to comment.