Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

How do I disable encoding of special characters in URLS when redirect to HTTPS?

$
0
0

I installed a call tracking and ad management system on the site, but it doesn't work, because after a redirect from HTTP ->HTTPS, some of the special characters in the URL are encoded.

Source URL:

http://site.ru/?utm_content=cid|{campaign_id}&calltouch_tm=yd_c:{campaign_id}_gb

After the redirect:

https://site.ru/?calltouch_tm=yd_c%3A%7Bcampaign_id%7D_gb&utm_content=cid%7C%7Bcampaign_id%7D

After contacting the hosting service, I found out that it is the engine that does the encoding, not the server. This was also indicated by the fact that the resulting URL had the same parameters, but in a different order.

We Use Symfony 4.2. The HTTP ->HTTPS redirect is controlled in the access_control section:

- { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }

I really ask for help - I have no ideas how to solve this problem (at all) - for me it is a dead end. Any implementations of the solution.


Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>