Skip to content

Commit

Permalink
Fix: searchParams.get are already decoded.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 1, 2024
1 parent ace9e80 commit ad302ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/on-request-during-serve-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function eleventyImageOnRequestDuringServePlugin(eleventyConfig, options = {}) {
// TODO work with dev-server’s option for `injectedScriptsFolder`
"/.11ty/image/": async function({ url }) {
// src could be file path or full url
let src = decodeURIComponent(url.searchParams.get("src"));
let src = url.searchParams.get("src");
let imageFormat = url.searchParams.get("format");
let width = parseInt(url.searchParams.get("width"), 10);
let via = url.searchParams.get("via");
Expand Down

0 comments on commit ad302ac

Please sign in to comment.