We have encountered a bug in our website's implementation of the Microsoft Dynamics form, specifically related to tracking pixels. When a user clicks on an <a> tag containing text with umlauts such as /äöü/, the requested tracking pixel fails to load.
Upon investigation, we have identified that the issue stems from the encoding of umlaut characters in the URL parameters. For instance, when the parameter &fn=ä (or &fn=%C3%A4 for URL encoded) is included in the URL, the tracking pixel fails to load.
Below are the scripts we include in our website:
The following is an example of the <a> tag causing the error:
Does Not Work (HTTP 400 Bad Request):
https://ANONYMISED.svc.dynamics.com/t/l/ANONYMISED_ANONYMISED/ANONYMISED_ANONYMISED/tFL31Tpt?ad=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7%23solarLeadForm-13402&rf=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7&tg=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7&fn=%C3%A4&id=2201315501
Works (HTTP 200):
https://ANONYMISED.svc.dynamics.com/t/l/ANONYMISED_ANONYMISED/ANONYMISED_ANONYMISED/tFL31Tpt?ad=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7%23solarLeadForm-13402&rf=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7&tg=https%3A%2F%2FANONYMISED%2Ffoo%2Fbar%3Ftx_form_formframework%255Baction%255D%3Dperform%26tx_form_formframework%255Bcontroller%255D%3DFormFrontend%26cHash%3D6ea8081847f6c6c35968e5d5d58290b7&fn=a&id=2201315501