我正在使用Firebase动态链接帖子API来返回短链接。当我发布这个:
https://CENSORED.page.link/?link=https://www.CENSORED.co.uk/offers/friends/?utm_source=referafriend&utm_medium=ecrm&utm_campaign=cbk25&utm_term=988776
单击返回的短链接重定向到:
https://www.CENSORED.co.uk/offers/friends/?utm_source=referafriend
该帖子由客户端js制作。 Firebase正在返回一个有效的短链接,但缺少一些参数。
点击短链接的预期网址:
https://www.CENSORED.co.uk/offers/friends/?utm_source=referafriend&utm_medium=ecrm&utm_campaign=cbk25&utm_term=988776
看起来它切断了我的大部分查询字符串 - 如何才能正确返回完整的查询字符串?
解决:逃离网址为我工作:
params丢失:
"https://www.test.co.uk/testing/?utm_source=jam&utm_medium=spoon&utm_campaign=jar&utm_term=lid"
params正确返回:
"https%3A%2F%2Fwww.test.co.uk%2Ftesting%2F%3Futm_source%3Djam%26utm_medium%3Dspoon%26utm_campaign%3Djar%26utm_term%3Dlid"