Redirecting Links in cocos creator

I am running game over localhost:7456 and i want to invite a friend which should also open the localhost:7456

But i want that the url is http://localhost:7456/invitation?code=xyzabc. Is there any by which i can handle this on frontend side in cocos?
This url http://localhost:7456/invitation?code=xyzabc is currently showing 404-not found. As i can’t create it. Can anyone tell how can i handle this ?

Can you just remove the “invitation” text in your link?
Like this http://localhost:7456/?code=xyzabc

I Can do that but backend is not handled on my side, and requirement is like that we want link to like this http://localhost:7456/invitation?code=xyzabc
With /invitation included.

I think you should ask your backend to redirect the /invitation link to the correct game file, then it will work

1 Like