标签: firebase firebase-dynamic-links url-shortener short-url
我正在使用firebase动态链接来缩短我的网址但是这样做会给出“warningCode”:“UNRECOGNIZED_PARAM”的响应,因为我的网址是“#”符号。并且它在#之前生成数据的短URL并忽略#。之后的数据。
我的网址如下: -
“https://example.page.link/?link=https://example.com/#/xyz/pqr/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.aTExSk5la3ZMUVUwTGU2ZTA3OThrdFRkVXE3ZThUZ0lZNzdpckVDcDhSRkIrZHBSUDl0ZFU0SlJOUkYwN0hwYXp2aUF4RlVZZjlTdGYzRnVJWlZpTlRxUDJvWlhyWVhCemJHa1VDc053Sm0vRmlYZlh4bGRb2xjcHM1RmhhdktkY2dRa1RhUlFPQjIya0Z2bWJSeEQ4YVFhY2FtSlJUOGFVMVR5ZUhOZm54Zz09.dhDJWIz9gqmnbhRhkwgZolwNZ8ba4CCjDEYlefkilPc”
我打电话给api: -
https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=my-key
答案 0 :(得分:0)
先将网址编码,然后再将其传递到api端点