function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Remlee dela Cruz 1Remlee dela Cruz 1 

Site URL redirect doesn't work if there is a query string e.g. fbclid

Hi, we are using site.com that re-directs on our website for links such as /join-us to /s/join-us or /donate to /s/donate. 

When entering the link in Facebook, it automatically adds a query string to the URL (e.g. fbclid=IwAR2BRa0DKzZY-2q4p4S8JVoEy2jHTufPlAL-cGtE2Xs1v6rlaGcIf_DuYbA) and this is not re-directed correctly. Is there a way of forcing redirections to ignore the query string?

e.g. https://www.company.org.au/join-now?fbclid=IwAR2BRa0DKzZY-2q4p4S8JVoEy2jHTufPlAL-cGtE2Xs1v6rlaGcIf_DuYbA DOES NOT REDIRECT

https://www.company.org.au/join-now DOES REDIRECT

Appreciate your help. Thanks!
SwethaSwetha (Salesforce Developers) 
HI Remlee,
URLs shared on Facebook will automatically get a fbclid parameter attached, so a redirection after clicking on a link on Facebook does not seem to be possible.

I found these below resources online that suggest using regular expressions: https://redirection.me/support/redirect-regular-expressions/  as a solution that might help you.

https://github.com/johngodley/redirection/issues/1275
https://wordpress.org/support/topic/facebook-is-adding-clid-which-prevents-redirects-from-working/
https://stackoverflow.com/questions/52847475/what-is-fbclid-the-new-facebook-parameter/52877205#52877205

​​​​​​​If this information helps, please mark the answer as best.Thank you