You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// First, build the complete URL with transformations
86
85
letfinalUrl=urlObj.href;
87
86
88
87
// Add transformation parameter manually to avoid URL encoding
89
88
// URLSearchParams.set() would encode commas and colons in transformation string,
90
-
// It would work correctly but not very readable e.g., "w-300,h-400" is better than "w-300%2Ch-400"
89
+
// It would work correctly but not very readable e.g., "w-300,h-400" is better than "w-300%2Ch-400". Moreover we ensure transformation string is URL safe by encoding individual components while building it.
// Replace the placeholder with actual transformation string
96
+
// We don't put actual transformation string before signing to avoid issues with URL encoding. Though in node it works correctly but other libraries use this code as blueprint and can double encode when using URL object .href equivalent.
0 commit comments