Incorrect link when sharing to facebook feed

Hi Everyone!

I have an app that sharing a deep link to all the known apps such as whatsapp\facebook and so on.
I’m using the Share api of react native to do that. Everything works just fine for all the apps except facebook feed. When i’m sharing to facebook feed the link that will post is the same link but with / just before the ? (the beginning of the parameters part)

for example, the correct link that send to all the other apps (except facebook feed) is:
https://app.com?type=messages&id=40
But when I choose to share with facebook feed the link that will post is:
https://app.com/?type=messages&id=40
Exactly the same link but with ‘/’ just before the ‘?’.

The problem is that when I click the wrong url it doesn’t open the “open with” and let me choose my app to open and it just open the link in the browser.

The function that i’m using the Share api is that (the url that send to the share function is the correct one):

export async function shareLink(itemId, itemType) {
const url = getUrl(itemId, itemType);
const message = await getMessage(itemId, itemType);
const messageAndLink = ${message}\n${url};
await Share.share({message: messageAndLink, title: message}, {subject: message})
}

Thank you all!