Skip to main content
Participant
February 19, 2025

URL Encoding Rules in QR Code Generator

  • February 19, 2025
  • 1 reply
  • 288 views

Hi.

I’m posting this because I believe I’ve found a bug in the QR Code Generator.

 

After using it multiple times, I noticed that the generator automatically applies URL encoding to the values of parameters in a URL. This seems to be a general approach, likely intended to ensure that characters not allowed in URLs are properly encoded.

 

However, there are cases where the parameter values are already URL-encoded before being passed into the QR Code Generator. This can happen when trying to pass a URL parameter to another destination. For example:
https://qrtest.test/endpoint?params=p1%3Dabc%26p2%3Ddef

 

When processed by the QR Code Generator, the parameter values are URL-encoded again, leading to the following URL in the generated QR code:
https://qrtest.test/endpoint?params=p1%253Dabc%2526p2%253Ddef

 

While I understand the reasoning behind encoding parameter values by default, this behavior causes issues when the input already contains URL-encoded values. Since this is likely not the intended outcome, I believe it should be considered a bug.

1 reply

David__B
Adobe Employee
Adobe Employee
February 19, 2025

Hi @monolith-jaehoon

Thanks for sharing this. I'll report the issue to our developers.


Best,
Dave